aboutsummaryrefslogtreecommitdiffstats
path: root/tags.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-07-01 02:10:13 +0000
committerrvelices <rv-github@modusoptimus.com>2008-07-01 02:10:13 +0000
commitecb61ba267303517603c82cb8ddb6127b6b1d9f6 (patch)
treebd0033afae702dbcd2832d731f383a9cf4c477bc /tags.php
parent8908a2d01d3c125fb7265ba86d72ed972533437e (diff)
- tags improvement : pass to templates all fields in table #tags (handy for plugins such as type tags)
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2410 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tags.php')
-rw-r--r--tags.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/tags.php b/tags.php
index 8ed0e36c6..131a68efd 100644
--- a/tags.php
+++ b/tags.php
@@ -91,16 +91,19 @@ foreach ($tags as $tag)
{
$template->assign_block_vars(
'tag',
- array(
- 'URL' => make_index_url(
- array(
- 'tags' => array($tag),
- )
- ),
-
- 'NAME' => $tag['name'],
- 'TITLE' => $tag['counter'],
- 'CLASS' => 'tagLevel'.$tag['level'],
+ array_merge(
+ $tag,
+ array(
+ 'URL' => make_index_url(
+ array(
+ 'tags' => array($tag),
+ )
+ ),
+
+ 'NAME' => $tag['name'],
+ 'TITLE' => $tag['counter'],
+ 'CLASS' => 'tagLevel'.$tag['level'],
+ )
)
);
}