Ignore:
Timestamp:
Jan 31, 2012, 1:33:01 AM (13 years ago)
Author:
plg
Message:

bug 2558 fixed: instead of locking the gallery with a simple checkbox among
configuration options, "lock gallery" becomes a maintenance action, with a
confirmation on popup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r12922 r13001  
    4747
    4848$main_checkboxes = array(
    49     'gallery_locked',
    5049    'allow_user_registration',
    5150    'obligatory_user_mail_address',
     
    173172      }
    174173     
    175       if (empty($_POST['gallery_locked']) and $conf['gallery_locked'])
    176       {
    177         $tpl_var = & $template->get_template_vars('header_msgs');
    178         $msg_key = array_search(l10n('The gallery is locked for maintenance. Please, come back later.'), $tpl_var);
    179         unset($tpl_var[$msg_key]);
    180       }
    181       elseif (!empty($_POST['gallery_locked']) and !$conf['gallery_locked'])
    182       {
    183         $template->append('header_msgs', l10n('The gallery is locked for maintenance. Please, come back later.'));
    184       }
    185174      foreach( $main_checkboxes as $checkbox)
    186175      {
Note: See TracChangeset for help on using the changeset viewer.