* add UserHelper methods to manipulate user database (add, modify, delete)
* expose said methods via CLI (update.php) * fix several invocations of deprecated functions * set stricter type hints on several method arguments
This commit is contained in:
@@ -146,7 +146,7 @@
|
||||
Debug::set_enabled(true);
|
||||
|
||||
if (isset($options["log-level"])) {
|
||||
Debug::set_loglevel((int)$options["log-level"]);
|
||||
Debug::set_loglevel(Debug::map_loglevel((int)$options["log-level"]));
|
||||
}
|
||||
|
||||
if (isset($options["log"])) {
|
||||
@@ -155,7 +155,7 @@
|
||||
Debug::log("Logging to " . $options["log"]);
|
||||
} else {
|
||||
if (isset($options['quiet'])) {
|
||||
Debug::set_loglevel(Debug::$LOG_DISABLED);
|
||||
Debug::set_loglevel(Debug::LOG_DISABLED);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user