Changeset 9544


Ignore:
Timestamp:
Mar 5, 2011, 5:14:41 PM (10 years ago)
Author:
patdenice
Message:

bug:2212
Update header message when gallery is locked or unlocked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r8728 r9544  
    110110    case 'main' :
    111111    {
     112      if (empty($_POST['gallery_locked']) and $conf['gallery_locked'])
     113      {
     114        $tpl_var = & $template->get_template_vars('header_msgs');
     115        $msg_key = array_search(l10n('The gallery is locked for maintenance. Please, come back later.'), $tpl_var);
     116        unset($tpl_var[$msg_key]);
     117      }
     118      elseif (!empty($_POST['gallery_locked']) and !$conf['gallery_locked'])
     119      {
     120        $template->append('header_msgs', l10n('The gallery is locked for maintenance. Please, come back later.'));
     121      }
    112122      foreach( $main_checkboxes as $checkbox)
    113123      {
Note: See TracChangeset for help on using the changeset viewer.