From 3a04d47416bdfea7b2474e766b4d04ffd67e6f1f Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 27 Aug 2007 23:43:20 +0000 Subject: [PATCH] fix for downtime git-svn-id: file:///home/shish/svn/shimmie2/trunk@485 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/downtime/main.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/downtime/main.php b/ext/downtime/main.php index 75db4987..35f4b5f1 100644 --- a/ext/downtime/main.php +++ b/ext/downtime/main.php @@ -6,10 +6,6 @@ class Downtime extends Extension { public function receive_event($event) { if(is_null($this->theme)) $this->theme = get_theme_object("downtime", "DowntimeTheme"); - if(is_a($event, 'InitExtEvent')) { - $this->check_downtime($event); - } - if(is_a($event, 'SetupBuildingEvent')) { $sb = new SetupBlock("Downtime"); $sb->add_bool_option("downtime", "Disable non-admin access: "); @@ -20,6 +16,7 @@ class Downtime extends Extension { if(is_a($event, 'PageRequestEvent')) { global $config; if($config->get_bool("downtime")) { + $this->check_downtime($event); $this->theme->display_notification($event->page); } }