diff options
author | patdenice <patdenice@piwigo.org> | 2011-03-05 16:16:53 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-03-05 16:16:53 +0000 |
commit | 1774bd1b98790761a99d422cf0e6e7cafb4c339c (patch) | |
tree | 65d81b35978ff43bcbd0c0c8b4debd8d49c37fda /admin | |
parent | e399854ab31fe939c60d19b0032a7f143a64a9c9 (diff) |
merge r9544 form trunk to branch 2.1
bug:2212
Update header message when gallery is locked or unlocked.
git-svn-id: http://piwigo.org/svn/branches/2.1@9545 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/configuration.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index 0f088cc3e..15f0ce8cb 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -114,6 +114,16 @@ if (isset($_POST['submit']) and !is_adviser()) { 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'; |