diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-07-01 02:10:13 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-07-01 02:10:13 +0000 |
commit | ecb61ba267303517603c82cb8ddb6127b6b1d9f6 (patch) | |
tree | bd0033afae702dbcd2832d731f383a9cf4c477bc /tags.php | |
parent | 8908a2d01d3c125fb7265ba86d72ed972533437e (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.php | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -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'], + ) ) ); } |