diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-15 17:42:49 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-15 17:42:49 -0800 |
commit | 20dcf37976ee269adcb2c004c5f612d8509b7f11 (patch) | |
tree | e7beba9e4639e5815d43820bec2549eb48951145 /mod/admin.php | |
parent | 38d513181d4d28fa2c525fac9ac53ba23649b17e (diff) | |
download | volse-hubzilla-20dcf37976ee269adcb2c004c5f612d8509b7f11.tar.gz volse-hubzilla-20dcf37976ee269adcb2c004c5f612d8509b7f11.tar.bz2 volse-hubzilla-20dcf37976ee269adcb2c004c5f612d8509b7f11.zip |
issue #221
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php index 070c06ea0..85ab3627c 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -6,6 +6,8 @@ * Controller for the /admin/ area. */ +require_once('include/queue_fn.php'); + /** * @param App &$a @@ -616,12 +618,11 @@ function admin_page_queue($a) { if($_REQUEST['drophub']) { require_once('hubloc.php'); hubloc_mark_as_down($_REQUEST['drophub']); + remove_queue_by_posturl($_REQUEST['drophub']); } if($_REQUEST['emptyhub']) { - $r = q("delete from outq where outq_posturl = '%s' ", - dbesc($_REQUEST['emptyhub']) - ); + remove_queue_by_posturl($_REQUEST['emptyhub']); } $r = q("select count(outq_posturl) as total, max(outq_priority) as priority, outq_posturl from outq |