summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/helpers/gallery.php2
-rw-r--r--modules/gallery/libraries/Theme_View.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index 33a6830c..82b8a790 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -26,7 +26,7 @@ class gallery_Core {
*/
static function maintenance_mode() {
if (Router::$controller != "login" &&
- module::get_var("gallery", "maintenance_mode", false) &&
+ module::get_var("gallery", "maintenance_mode", 0) &&
!identity::active_user()->admin) {
Router::$controller = "maintenance";
Router::$controller_path = MODPATH . "gallery/controllers/maintenance.php";
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 7b90c034..46291005 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -46,7 +46,7 @@ class Theme_View_Core extends Gallery_View {
$this->set_global("thumb_proportion", $this->thumb_proportion());
}
- if (module::get_var("gallery", "maintenance_mode", false)) {
+ if (module::get_var("gallery", "maintenance_mode", 0)) {
if (identity::active_user()->admin) {
message::warning(t("This site is currently in maintenance mode. Visit the <a href=\"%maintenance_url\">maintenance page</a>", array("maintenance_url" => url::site("admin/maintenance"))));
} else