aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-03-05 16:14:41 +0000
committerpatdenice <patdenice@piwigo.org>2011-03-05 16:14:41 +0000
commitc2a537318436d7f80401af3c68f1bcae24a5274c (patch)
tree5b27671ebb99fe6e9eb90dd8b3c611697eea496d
parent69f6f974b4164a541598e04aee7b88ebf42a7d16 (diff)
bug:2212
Update header message when gallery is locked or unlocked. git-svn-id: http://piwigo.org/svn/trunk@9544 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/configuration.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 7fedd34cf..c84962e42 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -109,6 +109,16 @@ if (isset($_POST['submit']))
{
case 'main' :
{
+ if (empty($_POST['gallery_locked']) and $conf['gallery_locked'])
+ {
+ $tpl_var = & $template->get_template_vars('header_msgs');
+ $msg_key = array_search(l10n('The gallery is locked for maintenance. Please, come back later.'), $tpl_var);
+ unset($tpl_var[$msg_key]);
+ }
+ elseif (!empty($_POST['gallery_locked']) and !$conf['gallery_locked'])
+ {
+ $template->append('header_msgs', l10n('The gallery is locked for maintenance. Please, come back later.'));
+ }
foreach( $main_checkboxes as $checkbox)
{
$_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';