Commit 2d8cc4f4 authored by Luke081515's avatar Luke081515

Fix use of optional params

* Wasn't called correctly
parent 8677d80b
Pipeline #1654 passed with stages
in 2 minutes and 31 seconds
......@@ -533,7 +533,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