merging minor updates from trunk
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@6 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
63dd7d8e54
commit
936d2ab48d
@ -54,7 +54,7 @@ Upgrade process:
|
||||
3) Create a new, blank database, separate from the old one
|
||||
4) Unzip shimmie2 into a different folder than shimmie1
|
||||
5) Visit the URL of shimmie2
|
||||
6) Full in the old database location, the new database location, and the full
|
||||
6) Fill in the old database location, the new database location, and the full
|
||||
path to the old installation folder (the folder where the old "images" and
|
||||
"thumbs" can be found)
|
||||
7) Click "upgrade"
|
||||
|
@ -17,6 +17,14 @@ class Downtime extends Extension {
|
||||
$event->config->set_bool("downtime", $_POST['downtime']);
|
||||
$event->config->set_string("downtime_message", $_POST['downtime_message']);
|
||||
}
|
||||
if(is_a($event, 'PageRequestEvent')) {
|
||||
global $config;
|
||||
if($config->get_bool("downtime")) {
|
||||
global $page;
|
||||
|
||||
$page->add_side_block(new Block("Downtime", "<span style='font-size: 1.5em'><b>DOWNTIME MODE IS ON!</b></span>"), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
// do things {{{
|
||||
|
Loading…
x
Reference in New Issue
Block a user