aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Locs.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-09-23 09:48:14 +0000
committerMario <mario@mariovavti.com>2020-09-23 09:48:14 +0000
commit81e2f73c9870b502ab0b56009459932282f87f02 (patch)
tree0b6898d371f122ff0917a0665a8fa50be9353fe3 /Zotlabs/Module/Locs.php
parent60fd27eca426aa5001f25f52fc89634ef9c00b9d (diff)
downloadvolse-hubzilla-81e2f73c9870b502ab0b56009459932282f87f02.tar.gz
volse-hubzilla-81e2f73c9870b502ab0b56009459932282f87f02.tar.bz2
volse-hubzilla-81e2f73c9870b502ab0b56009459932282f87f02.zip
5.0RC testing: fix mod locs
Diffstat (limited to 'Zotlabs/Module/Locs.php')
-rw-r--r--Zotlabs/Module/Locs.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/Zotlabs/Module/Locs.php b/Zotlabs/Module/Locs.php
index 47ece8041..63ca763a9 100644
--- a/Zotlabs/Module/Locs.php
+++ b/Zotlabs/Module/Locs.php
@@ -1,16 +1,18 @@
<?php
namespace Zotlabs\Module; /** @file */
+use App;
+use Zotlabs\Web\Controller;
+use Zotlabs\Daemon\Master;
-
-class Locs extends \Zotlabs\Web\Controller {
+class Locs extends Controller {
function post() {
if(! local_channel())
return;
- $channel = \App::get_channel();
+ $channel = App::get_channel();
if($_REQUEST['primary']) {
$hubloc_id = intval($_REQUEST['primary']);
@@ -33,8 +35,8 @@ class Locs extends \Zotlabs\Web\Controller {
intval($hubloc_id),
dbesc($channel['channel_hash'])
);
-
- \Zotlabs\Daemon\Master::Summon(array('Notifier','location',$channel['channel_id']));
+
+ Master::Summon( [ 'Notifier', 'refresh_all', $channel['channel_id'] ] );
return;
}
}
@@ -72,7 +74,7 @@ class Locs extends \Zotlabs\Web\Controller {
intval($hubloc_id),
dbesc($channel['channel_hash'])
);
- \Zotlabs\Daemon\Master::Summon(array('Notifier','location',$channel['channel_id']));
+ Master::Summon( [ 'Notifier', 'refresh_all', $channel['channel_id'] ] );
return;
}
}
@@ -88,10 +90,10 @@ class Locs extends \Zotlabs\Web\Controller {
return;
}
- $channel = \App::get_channel();
+ $channel = App::get_channel();
if($_REQUEST['sync']) {
- \Zotlabs\Daemon\Master::Summon(array('Notifier','location',$channel['channel_id']));
+ Master::Summon( [ 'Notifier', 'refresh_all', $channel['channel_id'] ] );
info( t('Syncing locations') . EOL);
goaway(z_root() . '/locs');
}