aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-03-15 02:26:25 +0000
committerrvelices <rv-github@modusoptimus.com>2006-03-15 02:26:25 +0000
commit88e3b36e2f805404e0bfd56d865e317495e9c973 (patch)
tree042d17038fedbc588e7b839aa754461e41fcc4f4 /include/functions_category.inc.php
parent1d22950cf6391f1037be9cd35288b36d62ea6fe5 (diff)
feature 262: new user cached information nb_total_pictures
git-svn-id: http://piwigo.org/svn/trunk@1081 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 0214656bc..2bc455775 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -104,26 +104,6 @@ SELECT name,id,date_last,nb_images,global_rank
}
/**
- * returns the total number of elements viewable in the gallery by the
- * connected user
- *
- * @return int
- */
-function count_user_total_images()
-{
- global $user;
-
- $query = '
-SELECT COUNT(DISTINCT(image_id)) as total
- FROM '.IMAGE_CATEGORY_TABLE.'
- WHERE category_id NOT IN ('.$user['forbidden_categories'].')
-;';
- list($total) = mysql_fetch_array(pwg_query($query));
-
- return $total;
-}
-
-/**
* Retrieve informations about a category in the database
*
* Returns an array with following keys :