aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-01-17 21:16:42 +0000
committerrvelices <rv-github@modusoptimus.com>2011-01-17 21:16:42 +0000
commite123585dde33f8ec3be13e788eea6fc10041920f (patch)
treea6857b12bdc8e83c060c5166ebf07fe932f8c745 /include/section_init.inc.php
parentb5046a4f949435ffbf068884f97cce300bf5ee90 (diff)
bug 2105 : Browsing tags is slow if tags contains many photos
git-svn-id: http://piwigo.org/svn/trunk@8726 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 02b1f83ab..7f0cbf96d 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -321,21 +321,6 @@ else
$items = get_image_ids_for_tags($page['tag_ids']);
- // permissions depends on category, so to only keep images that are
- // reachable to the connected user, we need to check category
- // associations
- if (!empty($items) )
- {
- $query = '
-SELECT DISTINCT image_id
- FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON image_id=id
- WHERE image_id IN ('.implode(',', $items).')
- '.$forbidden.
- $conf['order_by'].'
-;';
- $items = array_from_query($query, 'image_id');
- }
-
$page = array_merge(
$page,
array(