Standards, like always
This commit is contained in:
parent
8dd732a896
commit
51f93346d6
1 changed files with 3 additions and 3 deletions
|
@ -17,13 +17,13 @@ unset($db_host, $db_user, $db_pass, $db_data);
|
||||||
Config::load();
|
Config::load();
|
||||||
|
|
||||||
$maint_mode = 1;
|
$maint_mode = 1;
|
||||||
if($argc > 1) {
|
if ($argc > 1) {
|
||||||
$maint_mode = intval($argv[1]);
|
$maint_mode = intval($argv[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Config::set('system', 'maintenance', $maint_mode);
|
Config::set('system', 'maintenance', $maint_mode);
|
||||||
|
|
||||||
if($maint_mode AND ($argc > 2)) {
|
if ($maint_mode AND ($argc > 2)) {
|
||||||
$reason_arr = $argv;
|
$reason_arr = $argv;
|
||||||
array_shift($reason_arr);
|
array_shift($reason_arr);
|
||||||
array_shift($reason_arr);
|
array_shift($reason_arr);
|
||||||
|
@ -34,7 +34,7 @@ if($maint_mode AND ($argc > 2)) {
|
||||||
Config::set('system', 'maintenance_reason', '');
|
Config::set('system', 'maintenance_reason', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
if($maint_mode) {
|
if ($maint_mode) {
|
||||||
$mode_str = "maintenance mode";
|
$mode_str = "maintenance mode";
|
||||||
} else {
|
} else {
|
||||||
$mode_str = "normal mode";
|
$mode_str = "normal mode";
|
||||||
|
|
Loading…
Reference in a new issue