Ignore:
Timestamp:
Jan 20, 2014 9:42:13 PM (10 years ago)
Author:
anonymous
Message:

Removed use of requireAccessClearance(). Adjusted sequence of sslOn() and requireLogin(). Added ACL::requireAllow() method. Added arguments to SortOrder::set(). Changed behavior of Validator::validateStrDate(). Added use of Validator::validateStrDate() to module maker templates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SortOrder.inc.php

    r452 r457  
    139139     *                               for example, for an alphabetical sort)
    140140     */
    141     function set($sort = null, $order = null)
     141    function set($sort=null, $order=null, $save_value=true)
    142142    {
    143143        // Set new sort value.
    144144        if (isset($sort)) {
    145145            $this->sort_by = $sort;
    146             $this->prefs->set('sort_by', $this->sort_by);
     146            if ($save_value) {
     147                $this->prefs->set('sort_by', $this->sort_by);
     148            }
    147149        }
    148150
     
    150152        if (isset($order)) {
    151153            $this->order = $order;
    152             $this->prefs->set('sort_order', $this->order);
     154            if ($save_value) {
     155                $this->prefs->set('sort_order', $this->order);
     156            }
    153157        }
    154158    }
Note: See TracChangeset for help on using the changeset viewer.