ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 11199


Ignore:
Timestamp:
Mar 31, 2009, 5:24:05 PM (13 years ago)
Author:
nagasawa
Message:

#3659:page_size変数に代入してから値を変更するように修正(2.12)

Location:
OpenPNE/branches/stable-2.12.x/webapp/modules/admin/page
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/page/list_c_file.php

    r11192 r11199  
    1919        $v['SNS_NAME'] = SNS_NAME;
    2020
    21         if ($requests['page_size'] <= 0) {
    22             $requests['page_size'] = 20;
     21        $page_size = $requests['page_size'];
     22        if ($page_size <= 0) {
     23            $page_size = 20;
    2324        }
    24         $v['c_file_list'] = db_file_c_file_list($requests['page'], $requests['page_size'], $pager);
     25        $v['c_file_list'] = db_file_c_file_list($requests['page'], $page_size, $pager);
    2526        $v['pager'] = $pager;
    2627
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/page/list_c_image.php

    r11192 r11199  
    1515        $v['SNS_NAME'] = SNS_NAME;
    1616
    17         if ($requests['page_size'] <= 0) {
    18             $requests['page_size'] = 20;
     17        $page_size = $requests['page_size'];
     18        if ($page_size <= 0) {
     19            $page_size = 20;
    1920        }
    20         $c_image_list = db_image_c_image_list($requests['page'], $requests['page_size'], $pager);
     21        $c_image_list = db_image_c_image_list($requests['page'], $page_size, $pager);
    2122
    2223        //ファイル名からリンク先を生成
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/page/list_c_member.php

    r11167 r11199  
    1010    function execute($requests)
    1111    {
    12         if ($requests['page_size'] <= 0) {
    13             $requests['page_size'] = 20;
     12        $page_size = $requests['page_size'];
     13        if ($page_size <= 0) {
     14            $page_size = 20;
    1415        }
    1516        $order = $requests['order'];
     
    7172            }
    7273        } else {
    73             $v['c_member_list'] = _db_admin_c_member_list($requests['page'], $requests['page_size'], $pager, $cond_list, $profile_cond_list, $order);
     74            $v['c_member_list'] = _db_admin_c_member_list($requests['page'], $page_size, $pager, $cond_list, $profile_cond_list, $order);
    7475        }
    7576        foreach ($v['c_member_list'] as $key => $value) {
Note: See TracChangeset for help on using the changeset viewer.