* 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:
Andrew Dolgov
2022-06-10 13:39:00 +03:00
parent 2975c7297b
commit cf1eaeedf3
8 changed files with 275 additions and 30 deletions

View File

@@ -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);
}
}