aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-27 10:44:54 +0000
committerMario <mario@mariovavti.com>2022-12-27 10:44:54 +0000
commit633cd11c5b129a9712dbc6e7867284fa7999cea5 (patch)
tree8cee50f1d5af87924e1e6ed5ba3adcec5d1bfd4a /Zotlabs/Module
parent3101c6540a3992a95369abefd3bafa3abf36db9e (diff)
downloadvolse-hubzilla-633cd11c5b129a9712dbc6e7867284fa7999cea5.tar.gz
volse-hubzilla-633cd11c5b129a9712dbc6e7867284fa7999cea5.tar.bz2
volse-hubzilla-633cd11c5b129a9712dbc6e7867284fa7999cea5.zip
move mod queueworker to /admin
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Admin/Queueworker.php (renamed from Zotlabs/Module/Queueworker.php)21
1 files changed, 2 insertions, 19 deletions
diff --git a/Zotlabs/Module/Queueworker.php b/Zotlabs/Module/Admin/Queueworker.php
index 440132881..b7972b2db 100644
--- a/Zotlabs/Module/Queueworker.php
+++ b/Zotlabs/Module/Admin/Queueworker.php
@@ -1,6 +1,6 @@
<?php
-namespace Zotlabs\Module;
+namespace Zotlabs\Module\Admin;
use App;
use Zotlabs\Web\Controller;
@@ -13,10 +13,6 @@ class Queueworker extends Controller {
function post() {
- if ((!local_channel()) || (!is_site_admin())) {
- goaway(z_root() . '/queueworker');
- }
-
check_form_security_token('form_security_token', 'queueworker');
$maxqueueworkers = intval($_POST['queueworker_maxworkers']);
@@ -31,24 +27,11 @@ class Queueworker extends Controller {
$queueworkersleep = ($queueworkersleep > 100) ? $queueworkersleep : 100;
set_config('queueworker', 'queue_worker_sleep', $queueworkersleep);
- goaway(z_root() . '/queueworker');
+ goaway(z_root() . '/admin/queueworker');
}
function get() {
- $content = "<H1>ERROR: Page not found</H1>";
- App::$error = 404;
-
- if (!local_channel()) {
- return $content;
- }
-
- if (!(is_site_admin())) {
- return $content;
- }
-
- load_config("queueworker");
-
$content = "<H1>Queue Status</H1>\n";
$r = q('select count(*) as total from workerq');