From 3e418dc5a0faf93aa78ff67fb5a2f7476cb9ed1d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 21 Jan 2018 00:11:18 -0500 Subject: [PATCH] Fix remaining call_hooks --- smileybutton/smileybutton.php | 2 +- windowsphonepush/windowsphonepush.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smileybutton/smileybutton.php b/smileybutton/smileybutton.php index 4aea34d87..2d4a0743e 100644 --- a/smileybutton/smileybutton.php +++ b/smileybutton/smileybutton.php @@ -96,7 +96,7 @@ function show_button($a, &$b) { // Call hooks to get aditional smileies from other addons $params = ['texts' => $texts, 'icons' => $icons, 'string' => ""]; //changed - call_hooks('smilie', $params); + Addon::callHooks('smilie', $params); //Generate html for smiley list $s = "\n\t"; diff --git a/windowsphonepush/windowsphonepush.php b/windowsphonepush/windowsphonepush.php index 861bb7afa..032a53681 100644 --- a/windowsphonepush/windowsphonepush.php +++ b/windowsphonepush/windowsphonepush.php @@ -470,5 +470,5 @@ function windowsphonepush_login(App $a) require_once 'include/security.php'; authenticate_success($record); $_SESSION["allow_api"] = true; - call_hooks('logged_in', $a->user); + Addon::callHooks('logged_in', $a->user); }