diff options
author | Mario <mario@mariovavti.com> | 2020-09-23 09:48:14 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-09-23 14:15:31 +0200 |
commit | 586e2ef2df08efca37cea28f6c4d04b01e108a85 (patch) | |
tree | c3026613588d299713ab146e0c8c9769297f4cf7 | |
parent | be43d3e0fd0f9b51bedc3f84190864f71ab7d5d3 (diff) | |
download | volse-hubzilla-586e2ef2df08efca37cea28f6c4d04b01e108a85.tar.gz volse-hubzilla-586e2ef2df08efca37cea28f6c4d04b01e108a85.tar.bz2 volse-hubzilla-586e2ef2df08efca37cea28f6c4d04b01e108a85.zip |
5.0RC testing: fix mod locs
(cherry picked from commit 81e2f73c9870b502ab0b56009459932282f87f02)
-rw-r--r-- | Zotlabs/Module/Locs.php | 18 |
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'); } |