system/classes/listfactory.class.php
branchHEAD
changeset 7389 abd5bf00c26b
parent 7334 0b090631301e
child 7391 0bee991937cc
     1.1 --- a/system/classes/listfactory.class.php	Mon Sep 21 22:40:37 2009 +0100
     1.2 +++ b/system/classes/listfactory.class.php	Sun Oct 18 02:25:07 2009 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4  
     1.5  /* Reminder: always indent with 4 spaces (no tabs). */
     1.6  // +---------------------------------------------------------------------------+
     1.7 -// | Geeklog 1.6                                                               |
     1.8 +// | Geeklog 1.6.1                                                             |
     1.9  // +---------------------------------------------------------------------------+
    1.10  // | listfactory.class.php                                                     |
    1.11  // |                                                                           |
    1.12 @@ -528,7 +528,9 @@
    1.13              foreach ($this->_page_limits as $key => $val)
    1.14              {
    1.15                  $text = is_numeric($key) ? sprintf($LANG09[67], $val) : $key;
    1.16 -                $href = $this->_page_url . "results=$val";
    1.17 +                $href = $this->_page_url . "order={$this->_sort_arr['field']}&" .
    1.18 +                            "direction={$this->_sort_arr['direction']}&results=$val";
    1.19 +
    1.20                  $selected = $this->_per_page == $val ? ' selected="selected"' : '';
    1.21  
    1.22                  $list_templates->set_var('limit_text', $text);
    1.23 @@ -584,7 +586,8 @@
    1.24                          $text .= " ($direction)";
    1.25                      }
    1.26  
    1.27 -                    $href = $this->_page_url . "order={$field['name']}&direction=$direction";
    1.28 +                    $href = $this->_page_url . "results={$this->_per_page}&" .
    1.29 +                                "order={$field['name']}&direction=$direction";
    1.30  
    1.31                      if ($this->_style == 'table') {
    1.32                          $text = "<a href=\"$href\">$text</a>";