Changeset 1310 for trunk


Ignore:
Timestamp:
May 15, 2006, 11:22:43 PM (19 years ago)
Author:
plg
Message:

merge -r1308:1309 from branch 1.6 to trunk (bug 367 fixed)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_global.php

    r1308 r1310  
    294294    WHERE image_id IN ('.implode(',', $page['cat_elements_id']).')
    295295    GROUP BY tag_id
    296     ORDER BY name ASC
    297296  ;';
    298297  $result = pwg_query($query);
     
    303302    array_push($tags, $row);
    304303  }
     304
     305  usort($tags, 'name_compare');
    305306
    306307  $template->assign_vars(
  • trunk/include/functions_html.inc.php

    r1290 r1310  
    564564function name_compare($a, $b)
    565565{
    566   return strcmp($a['name'], $b['name']);
     566  return strcmp(strtolower($a['name']), strtolower($b['name']));
    567567}
    568568
  • trunk/include/functions_tag.inc.php

    r1135 r1310  
    9292{
    9393  $query = '
    94 SELECT id AS tag_id, name, url_name
     94SELECT id AS tag_id,
     95       name,
     96       url_name
    9597  FROM '.TAGS_TABLE.'
    96   ORDER BY name
    9798;';
    9899  $result = pwg_query($query);
     
    104105    array_push($tags, $row);
    105106  }
     107
     108  usort($tags, 'name_compare');
    106109
    107110  return $tags;
Note: See TracChangeset for help on using the changeset viewer.