Ignore:
Timestamp:
Apr 5, 2007 1:48:45 AM (17 years ago)
Author:
quinn
Message:

Converted all string functions to multi-byte (mb_*) functions

File:
1 edited

Legend:

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

    r154 r247  
    134134        $db =& DB::getInstance();
    135135
    136         if (!isset($this->_columns[strtolower($this->sort_by)])) {
     136        if (!isset($this->_columns[mb_strtolower($this->sort_by)])) {
    137137            $this->sort_by = $this->default_sort;
    138138            $this->order = $this->default_order;
    139139        }
    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)])) {
    141141            $this->order = 'ASC';
    142142        }
    143143
    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)]));
    146146        } else {
    147147            $app->logMsg(sprintf('Could not find SQL to sort by %s %s.', $this->sort_by, $this->order), LOG_WARNING, __FILE__, __LINE__);
     
    164164
    165165        if ($this->sort_by == $col) {
    166             if (strtolower($this->order) == 'desc') {
     166            if (mb_strtolower($this->order) == 'desc') {
    167167                ?><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
    168168            } else {
Note: See TracChangeset for help on using the changeset viewer.