Changeset 13240 for trunk/include/functions_html.inc.php
- Timestamp:
- Feb 18, 2012, 9:46:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r12920 r13240 295 295 function tag_alpha_compare($a, $b) 296 296 { 297 global $ page;297 global $cache; 298 298 299 299 foreach (array($a, $b) as $tag) 300 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'] ]);301 if (!isset($cache[__FUNCTION__][ $tag['name'] ])) 302 { 303 $cache[__FUNCTION__][ $tag['name'] ] = strtolower(str2url($tag['name'])); 304 } 305 } 306 307 return strcmp($cache[__FUNCTION__][ $a['name'] ], $cache[__FUNCTION__][ $b['name'] ]); 308 308 } 309 309
Note: See TracChangeset
for help on using the changeset viewer.