diff options
author | rvelices <rv-github@modusoptimus.com> | 2009-02-05 03:04:27 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2009-02-05 03:04:27 +0000 |
commit | b019ad9b5556b96342aa4c271143219261432229 (patch) | |
tree | 7c917eca8d78af02fa915909efa8fec0039b7aee /include/category_default.inc.php | |
parent | a44e905d0ba68c995ebe066792b9b348c45599cc (diff) |
merge r 3126 from trunk
- 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/branches/2.0@3127 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/category_default.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 804f2a5fa..c83d5cd00 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -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) |