]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / notice.php
index 54618bdf8f1776d9af5c4650b5ef740985ce3554..c2d85db166bcc7145dc1f25d765b8b25a3471b4d 100644 (file)
@@ -1,13 +1,16 @@
 <?php
-
-/* identi.ca -> friendica items permanent-url compatibility */
+/**
+ * @file mod/notice.php
+ * GNU Social -> friendica items permanent-url compatibility
+ */
 
 use Friendica\App;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 
-function notice_init(App $a) {
-
+function notice_init(App $a)
+{
        $id = $a->argv[1];
        $r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
        if (DBM::is_result($r)) {
@@ -16,7 +19,7 @@ function notice_init(App $a) {
                goaway($url);
        } else {
                $a->error = 404;
-               notice(t('Item not found.') . EOL);
+               notice(L10n::t('Item not found.') . EOL);
        }
 
        return;