aboutsummaryrefslogtreecommitdiffstats
path: root/tags.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-08-19 23:58:35 +0000
committerrvelices <rv-github@modusoptimus.com>2008-08-19 23:58:35 +0000
commitdcbaefafdfb955f61c9b83eb8d2e15eea2880694 (patch)
tree0e35d4a8466e3b0f8027059dbe81979ad5baab0f /tags.php
parent9a346cc2378bf752c7099a1875b10919f0f7235e (diff)
- ws can include php file before invoking web call method
- remove "Pierrick ..." from some languages - tags - small change to avoid increasing number of urls - added a missing closedir - remove some unnecessary class names and inexisting rel attributes git-svn-id: http://piwigo.org/svn/trunk@2478 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tags.php')
-rw-r--r--tags.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/tags.php b/tags.php
index 3b7337ca6..3932ded84 100644
--- a/tags.php
+++ b/tags.php
@@ -67,13 +67,15 @@ if (isset($_GET['display_mode']))
}
}
-$template->assign(
- array(
- 'U_CLOUD' => get_root_url().'tags.php?display_mode=cloud',
- 'U_LETTERS' => get_root_url().'tags.php?display_mode=letters',
- 'display_mode' => $page['display_mode'],
- )
- );
+foreach (array('cloud', 'letters') as $mode)
+{
+ $template->assign(
+ 'U_'.strtoupper($mode),
+ get_root_url().'tags.php'. ($conf['tags_default_display_mode']==$mode ? '' : '?display_mode='.$mode)
+ );
+}
+
+$template->assign( 'display_mode', $page['display_mode'] );
// find all tags available for the current user
$tags = get_available_tags();