From eaeb8348191e8937c2eada0e88b0514ea344226b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 26 Dec 2018 01:08:41 -0500 Subject: [PATCH] Replace deprecated Addon::callHooks by Hook::callAll --- smileybutton/smileybutton.php | 3 ++- windowsphonepush/windowsphonepush.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/smileybutton/smileybutton.php b/smileybutton/smileybutton.php index f4db08d9..fd779bac 100644 --- a/smileybutton/smileybutton.php +++ b/smileybutton/smileybutton.php @@ -6,6 +6,7 @@ * Author: Johannes Schwab */ use Friendica\Core\Addon; +use Friendica\Core\Hook; use Friendica\Core\Logger; function smileybutton_install() { @@ -97,7 +98,7 @@ function show_button(Friendica\App $a, &$b) { // Call hooks to get aditional smileies from other addons $params = ['texts' => $texts, 'icons' => $icons, 'string' => ""]; //changed - Addon::callHooks('smilie', $params); + Hook::callAll('smilie', $params); //Generate html for smiley list $s = "\n\t"; diff --git a/windowsphonepush/windowsphonepush.php b/windowsphonepush/windowsphonepush.php index bd1d3a38..29501191 100644 --- a/windowsphonepush/windowsphonepush.php +++ b/windowsphonepush/windowsphonepush.php @@ -31,6 +31,7 @@ use Friendica\Content\Text\BBCode; use Friendica\Content\Text\HTML; use Friendica\Core\Addon; use Friendica\Core\Authentication; +use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\PConfig; @@ -475,5 +476,5 @@ function windowsphonepush_login(App $a) Authentication::setAuthenticatedSessionForUser($record); $_SESSION["allow_api"] = true; - Addon::callHooks('logged_in', $a->user); + Hook::callAll('logged_in', $a->user); } -- 2.39.5