]> git.mxchange.org Git - friendica.git/commitdiff
Prettified the parameter layout of workerqueue (#5397)
authorJeroen De Meerleer <me@jeroened.be>
Wed, 18 Jul 2018 20:24:35 +0000 (22:24 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Wed, 18 Jul 2018 20:24:35 +0000 (16:24 -0400)
* Prettified the parameter layout of workerqueue

* Updated to code standards :)

* Where did I go wrong?

mod/admin.php

index 349e5b29acd786f21dca535cb20e05cc27eac8c3..8e20850c4e12d4d0b030aa3f99f93f61adfc76b5 100644 (file)
@@ -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, [