Merge pull request #495 from MrPetovan/bug/remaining-call-hooks

Fix remaining call_hooks
This commit is contained in:
Hypolite Petovan 2018-01-21 00:12:44 -05:00 committed by GitHub
commit afaa39ed7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 = "<table class=\"smiley-preview\"><tr>\n\t";

View file

@ -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);
}