Commit 8be1e23a authored by Freddy's avatar Freddy

Merge branch 'patch/FixDebug' into 'master'

Fix use of optional params

See merge request !102
parents ade77363 2d8cc4f4
Pipeline #1713 passed with stages
in 2 minutes and 40 seconds
......@@ -547,7 +547,7 @@ class Debug extends Core {
$required = array("user", "reason", "expiry");
$optional = array("anononly", "nocreate", "autoblock", "noemail", "hidename", "allowusertalk", "reblock");
$optvalues = array(1, 1, 1, 0, 0, 1, 0);
$Param = $this->getParams($required);
$Param = $this->getParams($required, $optional, $optvalues);
$this->echoNotice('Starting the function call of blockUser...');
$starttime = microtime (true);
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment