Ignore:
Timestamp:
Feb 18, 2012, 9:46:46 PM (12 years ago)
Author:
rvelices
Message:
  • multisize thumb longest side can be smaller than the square size
  • remove unused css, shorten/optimize php called very often (at least theoretically should be faster)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r12920 r13240  
    295295function tag_alpha_compare($a, $b)
    296296{
    297   global $page;
     297  global $cache;
    298298
    299299  foreach (array($a, $b) as $tag)
    300300  {
    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'] ]);
    308308}
    309309
Note: See TracChangeset for help on using the changeset viewer.