aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-02 00:29:27 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-02 00:29:27 +0000
commit6e932e8752faae824cdcb1073014771163a600a7 (patch)
tree384e84cbf6ca9b0f205764b948895ec8682d6a3a /include/common.inc.php
parent1f271ceca3e74c7b077f8462086db020121e81c3 (diff)
header.tpl goes smart
git-svn-id: http://piwigo.org/svn/trunk@2240 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 5986fe087..6776b5fb1 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -257,12 +257,8 @@ if (is_adviser())
if (count($header_msgs) > 0)
{
- $template->assign_block_vars('header_msgs',array());
- foreach ($header_msgs as $header_msg)
- {
- $template->assign_block_vars('header_msgs.header_msg',
- array('HEADER_MSG'=>$header_msg));
- }
+ $template->assign('header_msgs', $header_msgs);
+ $header_msgs=array();
}
if (!empty($conf['filter_pages']) and get_filter_page_value('used'))