diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-04-05 02:01:36 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-04-05 02:01:36 +0000 |
commit | bdceff32bcdd7a6ed72697384148577da4bc71d1 (patch) | |
tree | 10a99a67fa7c8685aab8bb213a4c0252bd48d30a /include/functions_calendar.inc.php | |
parent | db80e86df1d0708c18255c7e993a224ce6589b2a (diff) |
image sort order for tags
very minor code and language simplifications and corrections
git-svn-id: http://piwigo.org/svn/trunk@1125 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_calendar.inc.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/functions_calendar.inc.php b/include/functions_calendar.inc.php index f8bec93e0..1c86c679e 100644 --- a/include/functions_calendar.inc.php +++ b/include/functions_calendar.inc.php @@ -37,7 +37,6 @@ function initialize_calendar() if ($page['section']=='categories' or ( isset($page['category']) and is_numeric($page['category']) ) ) { // we will regenerate the items by including subcats elements - $page['cat_nb_images'] = 0; $page['items'] = array(); $inner_sql .= ' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id'; @@ -186,8 +185,7 @@ WHERE id IN (' . implode(',',$page['items']) .')'; { unset( $page['thumbnails_include'], - $page['items'], - $page['cat_nb_images'] + $page['items'] ); $must_show_list = false; @@ -270,7 +268,6 @@ WHERE id IN (' . implode(',',$page['items']) .')'; } $page['items'] = array_from_query($query, 'id'); - $page['cat_nb_images'] = count($page['items']); $page['thumbnails_include'] = 'include/category_default.inc.php'; } pwg_debug('end initialize_calendar'); |