Changeset 457 for trunk/lib/SortOrder.inc.php
- Timestamp:
- Jan 20, 2014 9:42:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/SortOrder.inc.php
r452 r457 139 139 * for example, for an alphabetical sort) 140 140 */ 141 function set($sort = null, $order = null)141 function set($sort=null, $order=null, $save_value=true) 142 142 { 143 143 // Set new sort value. 144 144 if (isset($sort)) { 145 145 $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 } 147 149 } 148 150 … … 150 152 if (isset($order)) { 151 153 $this->order = $order; 152 $this->prefs->set('sort_order', $this->order); 154 if ($save_value) { 155 $this->prefs->set('sort_order', $this->order); 156 } 153 157 } 154 158 }
Note: See TracChangeset
for help on using the changeset viewer.