diff options
author | Mario <mario@mariovavti.com> | 2021-01-18 13:49:58 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-18 13:49:58 +0000 |
commit | d5bd09b983f5d3edc44bf383a27ef84a9aa84f5a (patch) | |
tree | 6f03b28a92b7bb6fa5474e56bba87a6406010b8e /Zotlabs/Daemon/Deliver_hooks.php | |
parent | 45350179b4ad48b8fc81e23722974d95f39a1fe2 (diff) | |
download | volse-hubzilla-d5bd09b983f5d3edc44bf383a27ef84a9aa84f5a.tar.gz volse-hubzilla-d5bd09b983f5d3edc44bf383a27ef84a9aa84f5a.tar.bz2 volse-hubzilla-d5bd09b983f5d3edc44bf383a27ef84a9aa84f5a.zip |
cleanup daemon/deliver_hooks, daemon/directory
Diffstat (limited to 'Zotlabs/Daemon/Deliver_hooks.php')
-rw-r--r-- | Zotlabs/Daemon/Deliver_hooks.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Zotlabs/Daemon/Deliver_hooks.php b/Zotlabs/Daemon/Deliver_hooks.php index e8b5acef0..4d3ce4e1d 100644 --- a/Zotlabs/Daemon/Deliver_hooks.php +++ b/Zotlabs/Daemon/Deliver_hooks.php @@ -2,21 +2,18 @@ namespace Zotlabs\Daemon; -require_once('include/zot.php'); - class Deliver_hooks { - static public function run($argc,$argv) { + static public function run($argc, $argv) { - if($argc < 2) + if ($argc < 2) return; - $r = q("select * from item where id = '%d'", intval($argv[1]) ); - if($r) - call_hooks('notifier_normal',$r[0]); + if ($r) + call_hooks('notifier_normal', $r[0]); } } |