aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-06-28 23:02:24 +0000
committerrub <rub@piwigo.org>2006-06-28 23:02:24 +0000
commitcb74c6f67eb5c67a7f41c1cab5bb46d01043bea1 (patch)
tree4e8fdc64780a7550a19345521cb4a9243237509d /include
parent7a929a917105c24471b695745e7daf1604ea0b84 (diff)
Issue ID 0000375:
o Keep same format display o Add css class o rename warning to header_msg Merge BSF r1413:1414 into branch-1_6 git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1415 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/common.inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index f5abf1ee7..1cde9ae28 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -111,7 +111,7 @@ $conf = array();
$page = array();
$user = array();
$lang = array();
-$warnings = array();
+$header_msgs = array();
@include(PHPWG_ROOT_PATH .'include/mysql.inc.php');
if (!defined('PHPWG_INSTALLED'))
@@ -147,7 +147,7 @@ SELECT id
// which upgrades need to be applied?
if (count(array_diff($existing, $applied)) > 0)
{
- $warnings[] = 'Some database upgrades are missing, '
+ $header_msgs[] = 'Some database upgrades are missing, '
.'<a href="'.PHPWG_ROOT_PATH.'upgrade_feed.php">upgrade now</a>';
}
}
@@ -170,7 +170,7 @@ if (defined('IN_ADMIN') and IN_ADMIN)
if ($conf['gallery_locked'])
{
- $warnings[] = $lang['gallery_locked_message']
+ $header_msgs[] = $lang['gallery_locked_message']
. '<a href="'.PHPWG_ROOT_PATH.'identification.php">.</a>';
if ( basename($_SERVER["PHP_SELF"]) != 'identification.php'
@@ -214,18 +214,18 @@ include(
if (is_adviser())
{
- $warnings[] = $lang['adviser_mode_enabled'];
+ $header_msgs[] = $lang['adviser_mode_enabled'];
}
// template instance
$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']);
-if (count($warnings) > 0)
+if (count($header_msgs) > 0)
{
- $template->assign_block_vars('warnings',array());
- foreach ($warnings as $warning)
+ $template->assign_block_vars('header_msgs',array());
+ foreach ($header_msgs as $header_msg)
{
- $template->assign_block_vars('warnings.warning', array('WARNING'=>$warning));
+ $template->assign_block_vars('header_msgs.header_msg', array('HEADER_MSG'=>$header_msg));
}
}
?>