curly braces + spaces added
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
committed by
Roland Haeder
parent
15c77beee2
commit
720e7d6034
@@ -17,14 +17,16 @@ 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]);
|
||||
}
|
||||
set_config('system', 'maintenance', $maint_mode);
|
||||
|
||||
if($maint_mode)
|
||||
if ($maint_mode) {
|
||||
$mode_str = "maintenance mode";
|
||||
else
|
||||
} else {
|
||||
$mode_str = "normal mode";
|
||||
}
|
||||
|
||||
echo "\n\tSystem set in $mode_str\n\n";
|
||||
echo "Usage:\n\n";
|
||||
|
||||
Reference in New Issue
Block a user