Merge pull request #10882 from MrPetovan/task/10865-contact-purge

Add new purge contact content option to admin contact blocklist
This commit is contained in:
Philipp 2021-10-17 23:44:28 +02:00 committed by GitHub
commit 5d0b7fd87b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 133 additions and 83 deletions

View file

@ -1199,10 +1199,8 @@ class Worker
* array $arr
*
*/
public static function add($cmd)
public static function add(...$args)
{
$args = func_get_args();
if (!count($args)) {
return 0;
}
@ -1241,6 +1239,8 @@ class Worker
if (isset($run_parameter['force_priority'])) {
$force_priority = $run_parameter['force_priority'];
}
} else {
throw new \InvalidArgumentException('Priority number or task parameter array expected as first argument');
}
$command = array_shift($args);