diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-12-23 23:34:04 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-23 23:34:04 -0800 |
commit | b5ba61fc53e44d55978dd0d35ada80da4c47715d (patch) | |
tree | fcff9822072cd6965b036aa38ac04d96d79dc43f /modules/gallery/controllers/login.php | |
parent | 2b83918efd387dac1b86667a6c9027758dd4dbef (diff) |
Create a way for controllers to exempty themselves from maintenance
mode and private gallery mode by setting the following constants in
the controller to true.
ALLOW_MAINTENANCE_MODE
ALLOW_PRIVATE_GALLERY
Fixes #1411 and the subsequent refactoring fixes #1551 as well.
Diffstat (limited to 'modules/gallery/controllers/login.php')
-rw-r--r-- | modules/gallery/controllers/login.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/controllers/login.php b/modules/gallery/controllers/login.php index 62d33345..adb2e50b 100644 --- a/modules/gallery/controllers/login.php +++ b/modules/gallery/controllers/login.php @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Login_Controller extends Controller { + const ALLOW_MAINTENANCE_MODE = true; + const ALLOW_PRIVATE_GALLERY = true; public function ajax() { $view = new View("login_ajax.html"); |