]> git.mxchange.org Git - friendica.git/blobdiff - mod/subthread.php
Fix missing $ in front of variable names
[friendica.git] / mod / subthread.php
index 90ab5a3aabbddf46c0db8d1f26ea98655ee3c7fe..23ebf4fe4858f40a7f46f2bde0a6251852edb09d 100644 (file)
@@ -3,7 +3,7 @@
  * @file mod/subthread.php
  */
 use Friendica\App;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
@@ -13,8 +13,6 @@ use Friendica\Util\Security;
 use Friendica\Util\Strings;
 use Friendica\Util\XML;
 
-require_once 'include/items.php';
-
 function subthread_content(App $a) {
 
        if (!local_user() && !remote_user()) {
@@ -151,8 +149,8 @@ EOT;
 
        $arr['id'] = $post_id;
 
-       Addon::callHooks('post_local_end', $arr);
+       Hook::callAll('post_local_end', $arr);
 
-       killme();
+       exit();
 
 }