*/
use Friendica\App;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Model\Contact;
if (!DBM::is_result($r)) {
$a->error = 404;
- notice(t('Item not found.') . EOL);
+ notice(L10n::t('Item not found.') . EOL);
return;
}
} elseif (($a->argc == 3) && ($nick == 'feed-item')) {
function display_content(App $a, $update = false, $update_uid = 0) {
if (Config::get('system','block_public') && !local_user() && !remote_user()) {
- notice(t('Public access denied.') . EOL);
+ notice(L10n::t('Public access denied.') . EOL);
return;
}
if (!$item_id) {
$a->error = 404;
- notice(t('Item not found.').EOL);
+ notice(L10n::t('Item not found.').EOL);
return;
}
$is_owner = (local_user() && (in_array($a->profile['profile_uid'], [local_user(), 0])) ? true : false);
if (x($a->profile, 'hidewall') && !$is_owner && !$remote_contact) {
- notice(t('Access to this profile has been restricted.') . EOL);
+ notice(L10n::t('Access to this profile has been restricted.') . EOL);
return;
}
);
if (!DBM::is_result($r)) {
- notice(t('Item not found.') . EOL);
+ notice(L10n::t('Item not found.') . EOL);
return $o;
}