Browse Source

Standards, like always

pull/3245/head
Michael 4 years ago
parent
commit
51f93346d6
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      util/maintenance.php

+ 3
- 3
util/maintenance.php View File

@ -17,13 +17,13 @@ unset($db_host, $db_user, $db_pass, $db_data);
Config::load();
$maint_mode = 1;
if($argc > 1) {
if ($argc > 1) {
$maint_mode = intval($argv[1]);
}
Config::set('system', 'maintenance', $maint_mode);
if($maint_mode AND ($argc > 2)) {
if ($maint_mode AND ($argc > 2)) {
$reason_arr = $argv;
array_shift($reason_arr);
array_shift($reason_arr);
@ -34,7 +34,7 @@ if($maint_mode AND ($argc > 2)) {
Config::set('system', 'maintenance_reason', '');
}
if($maint_mode) {
if ($maint_mode) {
$mode_str = "maintenance mode";
} else {
$mode_str = "normal mode";


Loading…
Cancel
Save