From b265bf2ec3388b43e6c5a3d4a6621c79d3cbe227 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 18 Jul 2018 22:24:35 +0200 Subject: [PATCH] Prettified the parameter layout of workerqueue (#5397) * Prettified the parameter layout of workerqueue * Updated to code standards :) * Where did I go wrong? --- mod/admin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/admin.php b/mod/admin.php index 349e5b29a..8e20850c4 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -782,6 +782,11 @@ function admin_page_workerqueue(App $a) // get jobs from the workerqueue table $statement = dba::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]); $r = dba::inArray($statement); + + for($i = 0; $i < count($r); $i++) { + $r[$i]['parameter'] = implode(': ', explode('","', $r[$i]['parameter'])); + $r[$i]['parameter'] = substr($r[$i]['parameter'], 2, -4); + } $t = get_markup_template('admin/workerqueue.tpl'); return replace_macros($t, [