Changeset 18249


Ignore:
Timestamp:
2009/08/03 09:31:42 (12 years ago)
Author:
ramrun
Message:

r18187 ページ送りをPOSTからGETに変更するにあたり、検索ブロックからの処理が抜けていた

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/products/LC_Page_Products_List.php

    r18239 r18249  
    467467        $this->objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, $disp_number, "fnNaviPage", NAVI_PMAX); 
    468468        $strnavi = $this->objNavi->strnavi; 
    469         $strnavi = preg_replace('/list\.php.*?\'([0-9]+)\'.*?\"/', 'list.php?category_id=' . $category_id . '&pageno=$1"', $strnavi); 
    470   
     469        $query_string = htmlentities($_SERVER['QUERY_STRING'], ENT_QUOTES, CHAR_CODE); 
     470        if (preg_match('|&pageno=|', $query_string)) 
     471            $query_string = preg_replace('|&pageno=[0-9]+|', '', $query_string); 
     472        $strnavi = preg_replace('|list\.php.*?\'([0-9]+)\'.*?\"|', 'list.php?' . $query_string . '&pageno=$1"', $strnavi);  
     473 
    471474        // 表示文字列 
    472475        $this->tpl_strnavi = empty($strnavi) ? " " : $strnavi; 
Note: See TracChangeset for help on using the changeset viewer.