X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FContent%2FSmilies.php;h=89a833d71098762dd1f8f583bd1b447a76ccb7e4;hb=391c5913227c7f62f19b4f08906b0b1b0b618b33;hp=ce785d66f44f48687160a8ed334a6fe01d3550ed;hpb=81647cefeddb942bbb9edece88f0742fdf132cf9;p=friendica.git
diff --git a/src/Content/Smilies.php b/src/Content/Smilies.php
index ce785d66f4..89a833d710 100644
--- a/src/Content/Smilies.php
+++ b/src/Content/Smilies.php
@@ -15,6 +15,7 @@
namespace Friendica\Content;
use Friendica\App;
+use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
@@ -61,7 +62,7 @@ class Smilies
*/
public static function getList()
{
- $texts = array(
+ $texts = [
'<3',
'</3',
'<\\3',
@@ -98,9 +99,9 @@ class Smilies
'red#',
'red#matrix'
- );
+ ];
- $icons = array(
+ $icons = [
'
',
'
',
'
',
@@ -136,10 +137,10 @@ class Smilies
'~friendica
',
'red
matrix',
'red
matrix'
- );
+ ];
- $params = array('texts' => $texts, 'icons' => $icons);
- call_hooks('smilie', $params);
+ $params = ['texts' => $texts, 'icons' => $icons];
+ Addon::callHooks('smilie', $params);
return $params;
}
@@ -175,7 +176,7 @@ class Smilies
$params = self::getList();
if ($no_images) {
- $cleaned = array('texts' => array(), 'icons' => array());
+ $cleaned = ['texts' => [], 'icons' => []];
$icons = $params['icons'];
foreach ($icons as $key => $icon) {
if (!strstr($icon, '![]()