Changeset 12761
- Timestamp:
- 12/17/11 23:52:19 (17 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
include/functions_html.inc.php (modified) (1 diff)
-
tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r12479 r12761 295 295 function tag_alpha_compare($a, $b) 296 296 { 297 return strcmp(strtolower($a['url_name']), strtolower($b['url_name'])); 297 global $page; 298 299 foreach (array($a, $b) as $tag) 300 { 301 if (!isset($page[__FUNCTION__.'_cache'][ $tag['name'] ])) 302 { 303 $page[__FUNCTION__.'_cache'][ $tag['name'] ] = strtolower(str2url($tag['name'])); 304 } 305 } 306 307 return strcmp($page[__FUNCTION__.'_cache'][ $a['name'] ], $page[__FUNCTION__.'_cache'][ $b['name'] ]); 298 308 } 299 309 -
trunk/tags.php
r10824 r12761 100 100 foreach ($tags as $tag) 101 101 { 102 $tag_letter = strtoupper( substr($tag['url_name'], 0, 1));102 $tag_letter = strtoupper(mb_substr(str2url($tag['name']), 0, 1, 'utf-8')); 103 103 104 104 if ($current_tag_idx==0) { … … 172 172 173 173 // we want tags diplayed in alphabetic order 174 usort($tags, 'tag_alpha_compare'); 174 if ('letters' != $page['display_mode']) 175 { 176 usort($tags, 'tag_alpha_compare'); 177 } 175 178 176 179 // display sorted tags
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)