mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
- embellish_url compacts now ..
- some trigger improvements (render_category_description) - improved perf of duplicate_xxx_url ( rewrote func params_for_duplication and remove some vars from $page ) git-svn-id: http://piwigo.org/svn/trunk@3126 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
$page['rank_of'] = array_flip($page['items']);
|
||||
|
||||
$pictures = array();
|
||||
|
||||
$selection = array_slice(
|
||||
@@ -39,6 +37,8 @@ $selection = array_slice(
|
||||
|
||||
if (count($selection) > 0)
|
||||
{
|
||||
$rank_of = array_flip($page['items']);
|
||||
|
||||
$query = '
|
||||
SELECT *
|
||||
FROM '.IMAGES_TABLE.'
|
||||
@@ -53,6 +53,7 @@ SELECT *
|
||||
}
|
||||
|
||||
usort($pictures, 'rank_compare');
|
||||
unset($rank_of);
|
||||
}
|
||||
|
||||
if (count($pictures) > 0)
|
||||
|
||||
Reference in New Issue
Block a user