mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
- 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) git-svn-id: http://piwigo.org/svn/trunk@13240 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
3ef9e856c3
commit
a893882789
12 changed files with 107 additions and 133 deletions
|
@ -294,17 +294,17 @@ function name_compare($a, $b)
|
|||
|
||||
function tag_alpha_compare($a, $b)
|
||||
{
|
||||
global $page;
|
||||
global $cache;
|
||||
|
||||
foreach (array($a, $b) as $tag)
|
||||
{
|
||||
if (!isset($page[__FUNCTION__.'_cache'][ $tag['name'] ]))
|
||||
if (!isset($cache[__FUNCTION__][ $tag['name'] ]))
|
||||
{
|
||||
$page[__FUNCTION__.'_cache'][ $tag['name'] ] = strtolower(str2url($tag['name']));
|
||||
$cache[__FUNCTION__][ $tag['name'] ] = strtolower(str2url($tag['name']));
|
||||
}
|
||||
}
|
||||
|
||||
return strcmp($page[__FUNCTION__.'_cache'][ $a['name'] ], $page[__FUNCTION__.'_cache'][ $b['name'] ]);
|
||||
return strcmp($cache[__FUNCTION__][ $a['name'] ], $cache[__FUNCTION__][ $b['name'] ]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue