]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact.php
Replace deprecated Addon::callHooks with Hook::callAll
[friendica.git] / src / Module / Contact.php
index 245e5f0b226d00f8c0ed50c53c1dfd2dbf7e7f06..fa231b1de1dc1b12fde9a7fe2f7ff418b0d8bbf9 100644 (file)
@@ -10,7 +10,7 @@ use Friendica\Content\Pager;
 use Friendica\Content\Text\BBCode;
 use Friendica\Content\Widget;
 use Friendica\Core\ACL;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
@@ -194,7 +194,7 @@ class Contact extends BaseModule
                        return; // NOTREACHED
                }
 
-               Addon::callHooks('contact_edit_post', $_POST);
+               Hook::callAll('contact_edit_post', $_POST);
 
                $profile_id = intval(defaults($_POST, 'profile-assign', 0));
                if ($profile_id) {
@@ -659,7 +659,7 @@ class Contact extends BaseModule
 
                        $arr = ['contact' => $contact, 'output' => $o];
 
-                       Addon::callHooks('contact_edit', $arr);
+                       Hook::callAll('contact_edit', $arr);
 
                        return $arr['output'];
                }