]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Replace deprecated Addon::callHooks with Hook::callAll
[friendica.git] / mod / item.php
index 5e6f88bac7ea33224c78b741d68633c76fd43491..3d6d886eeb33042f05457529edf9bc0cb150fd56 100644 (file)
@@ -19,8 +19,8 @@ use Friendica\App;
 use Friendica\Content\Pager;
 use Friendica\Content\Text\BBCode;
 use Friendica\Content\Text\HTML;
-use Friendica\Core\Addon;
 use Friendica\Core\Config;
+use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
@@ -54,7 +54,7 @@ function item_post(App $a) {
                exit();
        }
 
-       Addon::callHooks('post_local_start', $_REQUEST);
+       Hook::callAll('post_local_start', $_REQUEST);
 
        Logger::log('postvars ' . print_r($_REQUEST, true), Logger::DATA);
 
@@ -679,7 +679,7 @@ function item_post(App $a) {
                exit();
        }
 
-       Addon::callHooks('post_local',$datarray);
+       Hook::callAll('post_local',$datarray);
 
        if (!empty($datarray['cancel'])) {
                Logger::log('mod_item: post cancelled by addon.');
@@ -795,7 +795,7 @@ function item_post(App $a) {
                }
        }
 
-       Addon::callHooks('post_local_end', $datarray);
+       Hook::callAll('post_local_end', $datarray);
 
        if (strlen($emailcc) && $profile_uid == local_user()) {
                $erecips = explode(',', $emailcc);