Changeset 247 for trunk/lib/SortOrder.inc.php
- Timestamp:
- Apr 5, 2007 1:48:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/SortOrder.inc.php
r154 r247 134 134 $db =& DB::getInstance(); 135 135 136 if (!isset($this->_columns[ strtolower($this->sort_by)])) {136 if (!isset($this->_columns[mb_strtolower($this->sort_by)])) { 137 137 $this->sort_by = $this->default_sort; 138 138 $this->order = $this->default_order; 139 139 } 140 if (!isset($this->_columns[ strtolower($this->sort_by)][strtolower($this->order)])) {140 if (!isset($this->_columns[mb_strtolower($this->sort_by)][mb_strtolower($this->order)])) { 141 141 $this->order = 'ASC'; 142 142 } 143 143 144 if (!empty($this->_columns[ strtolower($this->sort_by)][strtolower($this->order)])) {145 return sprintf(' ORDER BY %s ', $db->escapeString($this->_columns[ strtolower($this->sort_by)][strtolower($this->order)]));144 if (!empty($this->_columns[mb_strtolower($this->sort_by)][mb_strtolower($this->order)])) { 145 return sprintf(' ORDER BY %s ', $db->escapeString($this->_columns[mb_strtolower($this->sort_by)][mb_strtolower($this->order)])); 146 146 } else { 147 147 $app->logMsg(sprintf('Could not find SQL to sort by %s %s.', $this->sort_by, $this->order), LOG_WARNING, __FILE__, __LINE__); … … 164 164 165 165 if ($this->sort_by == $col) { 166 if ( strtolower($this->order) == 'desc') {166 if (mb_strtolower($this->order) == 'desc') { 167 167 ?><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?sort=' . $col . '&order=ASC'); ?>" title="<?php echo _("Change to ascending sort order"); ?>"><?php echo $this->desc_widget; ?></a><?php echo $col_name; ?><?php 168 168 } else {
Note: See TracChangeset
for help on using the changeset viewer.