Prettified the parameter layout of workerqueue (#5397)
* Prettified the parameter layout of workerqueue * Updated to code standards :) * Where did I go wrong?
This commit is contained in:
parent
2c44437d40
commit
b265bf2ec3
1 changed files with 5 additions and 0 deletions
|
@ -783,6 +783,11 @@ function admin_page_workerqueue(App $a)
|
||||||
$statement = dba::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]);
|
$statement = dba::select('workerqueue', ['id', 'parameter', 'created', 'priority'], ['done' => 0], ['order'=> ['priority']]);
|
||||||
$r = dba::inArray($statement);
|
$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');
|
$t = get_markup_template('admin/workerqueue.tpl');
|
||||||
return replace_macros($t, [
|
return replace_macros($t, [
|
||||||
'$title' => L10n::t('Administration'),
|
'$title' => L10n::t('Administration'),
|
||||||
|
|
Loading…
Reference in a new issue