From b3e71e424c0a78de76fa35ff980be4d65d83f573 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 4 Oct 2012 16:03:25 +0000 Subject: 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 --- include/common.inc.php | 1 + include/page_messages.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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])) { -- cgit v1.2.3