mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-17 12:03:45 +00:00
Replace deprecated Addon::callHooks by Hook::callAll
This commit is contained in:
parent
aa5fbb4994
commit
eaeb834819
2 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
* Author: Johannes Schwab <https://friendica.jschwab.org/profile/ddorian>
|
* Author: Johannes Schwab <https://friendica.jschwab.org/profile/ddorian>
|
||||||
*/
|
*/
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
|
|
||||||
function smileybutton_install() {
|
function smileybutton_install() {
|
||||||
|
@ -97,7 +98,7 @@ function show_button(Friendica\App $a, &$b) {
|
||||||
|
|
||||||
// Call hooks to get aditional smileies from other addons
|
// Call hooks to get aditional smileies from other addons
|
||||||
$params = ['texts' => $texts, 'icons' => $icons, 'string' => ""]; //changed
|
$params = ['texts' => $texts, 'icons' => $icons, 'string' => ""]; //changed
|
||||||
Addon::callHooks('smilie', $params);
|
Hook::callAll('smilie', $params);
|
||||||
|
|
||||||
//Generate html for smiley list
|
//Generate html for smiley list
|
||||||
$s = "<table class=\"smiley-preview\"><tr>\n\t";
|
$s = "<table class=\"smiley-preview\"><tr>\n\t";
|
||||||
|
|
|
@ -31,6 +31,7 @@ use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Content\Text\HTML;
|
use Friendica\Content\Text\HTML;
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
use Friendica\Core\Authentication;
|
use Friendica\Core\Authentication;
|
||||||
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
|
@ -475,5 +476,5 @@ function windowsphonepush_login(App $a)
|
||||||
|
|
||||||
Authentication::setAuthenticatedSessionForUser($record);
|
Authentication::setAuthenticatedSessionForUser($record);
|
||||||
$_SESSION["allow_api"] = true;
|
$_SESSION["allow_api"] = true;
|
||||||
Addon::callHooks('logged_in', $a->user);
|
Hook::callAll('logged_in', $a->user);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue