]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Merge pull request #4312 from zeroadam/feature/L10n
[friendica.git] / mod / ping.php
index 9dd6780d01bcd7b0cd375a97cb278785dfcef064..a685a924a759b353c73169590d815fcd12b7ab40 100644 (file)
@@ -5,7 +5,9 @@
 use Friendica\App;
 use Friendica\Content\Feature;
 use Friendica\Content\ForumManager;
+use Friendica\Core\Addon;
 use Friendica\Core\Cache;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Core\PConfig;
 use Friendica\Database\DBM;
@@ -138,7 +140,7 @@ function ping_init(App $a)
 
                if (DBM::is_result($items_unseen)) {
                        $arr = ['items' => $items_unseen];
-                       call_hooks('network_ping', $arr);
+                       Addon::callHooks('network_ping', $arr);
 
                        foreach ($items_unseen as $item) {
                                if ($item['wall']) {
@@ -285,7 +287,7 @@ function ping_init(App $a)
                                        'photo'   => $intro['photo'],
                                        'date'    => $intro['datetime'],
                                        'seen'    => false,
-                                       'message' => t('{0} wants to be your friend'),
+                                       'message' => L10n::t('{0} wants to be your friend'),
                                ];
                                $notifs[] = $notif;
                        }
@@ -300,7 +302,7 @@ function ping_init(App $a)
                                        'photo'   => $mail['from-photo'],
                                        'date'    => $mail['created'],
                                        'seen'    => false,
-                                       'message' => t('{0} sent you a message'),
+                                       'message' => L10n::t('{0} sent you a message'),
                                ];
                                $notifs[] = $notif;
                        }
@@ -315,7 +317,7 @@ function ping_init(App $a)
                                        'photo'   => $reg['micro'],
                                        'date'    => $reg['created'],
                                        'seen'    => false,
-                                       'message' => t('{0} requested registration'),
+                                       'message' => L10n::t('{0} requested registration'),
                                ];
                                $notifs[] = $notif;
                        }