aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-27 09:18:46 +0000
committerMario <mario@mariovavti.com>2021-05-27 09:18:46 +0000
commit16146af0392a33b90edce1fd7136b19d5d683c31 (patch)
treef4966c3d1aefc95cb98a906193de241286e1800e
parent6a7e06f11cb200d4ed1ea29688a3d8eaf98c45ea (diff)
downloadvolse-hubzilla-16146af0392a33b90edce1fd7136b19d5d683c31.tar.gz
volse-hubzilla-16146af0392a33b90edce1fd7136b19d5d683c31.tar.bz2
volse-hubzilla-16146af0392a33b90edce1fd7136b19d5d683c31.zip
deprecate remove_queue_by_posturl()
-rw-r--r--Zotlabs/Module/Admin/Queue.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/Zotlabs/Module/Admin/Queue.php b/Zotlabs/Module/Admin/Queue.php
index 5a47413ee..a4ce1b950 100644
--- a/Zotlabs/Module/Admin/Queue.php
+++ b/Zotlabs/Module/Admin/Queue.php
@@ -7,30 +7,30 @@ namespace Zotlabs\Module\Admin;
class Queue {
-
+
function get() {
$o = '';
-
+
$expert = ((array_key_exists('expert',$_REQUEST)) ? intval($_REQUEST['expert']) : 0);
-
+
if($_REQUEST['drophub']) {
hubloc_mark_as_down($_REQUEST['drophub']);
- remove_queue_by_posturl($_REQUEST['drophub']);
+ Queue::remove_by_posturl($_REQUEST['drophub']);
}
-
+
if($_REQUEST['emptyhub']) {
- remove_queue_by_posturl($_REQUEST['emptyhub']);
+ Queue::remove_by_posturl($_REQUEST['emptyhub']);
}
-
- $r = q("select count(outq_posturl) as total, max(outq_priority) as priority, outq_posturl from outq
+
+ $r = q("select count(outq_posturl) as total, max(outq_priority) as priority, outq_posturl from outq
where outq_delivered = 0 group by outq_posturl order by total desc");
-
+
for($x = 0; $x < count($r); $x ++) {
$r[$x]['eurl'] = urlencode($r[$x]['outq_posturl']);
$r[$x]['connected'] = datetime_convert('UTC',date_default_timezone_get(),$r[$x]['connected'],'Y-m-d');
}
-
+
$o = replace_macros(get_markup_template('admin_queue.tpl'), array(
'$banner' => t('Queue Statistics'),
'$numentries' => t('Total Entries'),
@@ -43,11 +43,11 @@ class Queue {
'$entries' => $r,
'$expert' => $expert
));
-
+
return $o;
}
-
-} \ No newline at end of file
+
+}