Changeset 12760
- Timestamp:
- Dec 17, 2011, 11:51:20 PM (12 years ago)
- Location:
- branches/2.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/include/functions_html.inc.php
r12480 r12760 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 -
branches/2.3/tags.php
r10824 r12760 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
Note: See TracChangeset
for help on using the changeset viewer.