aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-01-03 20:47:15 +0000
committerrvelices <rv-github@modusoptimus.com>2011-01-03 20:47:15 +0000
commit621ed0b391f81bb7d636d1e447154e1f5b43fb24 (patch)
treef1bd0160bcfe94ca2c48890b214a04e02dd7a7bb /index.php
parent1117fadff39a8508a32252904726631354b05250 (diff)
- css sprites - attempt to auto align plugin image links on the index page and picture pages
- css sprites - a couple of rel nofolloz dissapeared - hide the flat icon if there are no sub albums for the current album git-svn-id: http://piwigo.org/svn/trunk@8463 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index f253ac120..39a73cd26 100644
--- a/index.php
+++ b/index.php
@@ -261,6 +261,11 @@ if ($page['start']==0 and !isset($page['chronology_field']) and !empty($page['co
// include menubar
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
+if ( isset($page['category']['count_categories']) and $page['category']['count_categories']==0 )
+{// count_categories might be computed by menubar - if the case unassign flat link if no sub albums
+ $template->clear_assign('U_MODE_FLAT');
+}
+
//------------------------------------------------------ main part : thumbnails
if ( 0==$page['start']
and !isset($page['flat'])