aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-10-04 16:03:25 +0000
committermistic100 <mistic@piwigo.org>2012-10-04 16:03:25 +0000
commitb3e71e424c0a78de76fa35ff980be4d65d83f573 (patch)
treea4cbf6ac0b34071f47302c60cd37e5577ac06728 /include
parentb1cec7bf86b84296acc97ffed090bf1686964420 (diff)
feature 2761: Pass all kind of messages through session on admin
git-svn-id: http://piwigo.org/svn/trunk@18463 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/common.inc.php1
-rw-r--r--include/page_messages.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 7c645a236..40e176dea 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -64,6 +64,7 @@ $conf = array();
$page = array(
'infos' => array(),
'errors' => array(),
+ 'warnings' => array(),
);
$user = array();
$lang = array();
diff --git a/include/page_messages.php b/include/page_messages.php
index aea8d7afd..58cd5d0a0 100644
--- a/include/page_messages.php
+++ b/include/page_messages.php
@@ -24,7 +24,7 @@
// messages only if no redirection
if ($template->get_template_vars('page_refresh') === null)
{
- foreach (array('errors','infos') as $mode)
+ foreach (array('errors','infos','warnings') as $mode)
{
if (isset($_SESSION['page_'.$mode]))
{