X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FAdmin%2FQueue.php;h=7f5329dbfe87aad6bf960f22325102ce2a9c2646;hb=2ce15cae1a41451b631b814c418b3b3b976d79d1;hp=59912fc6c9ca83a3b875d88f3cc1aa37540e228c;hpb=42775d53b2c5177cae2e0e1dacb0a32f92e4a83b;p=friendica.git diff --git a/src/Module/Admin/Queue.php b/src/Module/Admin/Queue.php index 59912fc6c9..7f5329dbfe 100644 --- a/src/Module/Admin/Queue.php +++ b/src/Module/Admin/Queue.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module\Admin; @@ -23,13 +42,10 @@ class Queue extends BaseAdmin { parent::content($parameters); - $a = DI::app(); - - // @TODO: Replace with parameter from router - $deferred = $a->argc > 2 && $a->argv[2] == 'deferred'; + $status = $parameters['status'] ?? ''; // get jobs from the workerqueue table - if ($deferred) { + if ($status == 'deferred') { $condition = ["NOT `done` AND `retrial` > ?", 0]; $sub_title = DI::l10n()->t('Inspect Deferred Worker Queue'); $info = DI::l10n()->t("This page lists the deferred worker jobs. This are jobs that couldn't be executed at the first time.");