EOL removed

This commit is contained in:
Michael 2020-07-23 06:25:01 +00:00
parent 3fc3ded750
commit 0007da8630
39 changed files with 146 additions and 146 deletions

View file

@ -46,7 +46,7 @@ class Server extends BaseAdmin
'reason' => Strings::escapeTags(trim($_POST['newentry_reason']))
];
DI::config()->set('system', 'blocklist', $blocklist);
info(DI::l10n()->t('Server domain pattern added to blocklist.') . EOL);
info(DI::l10n()->t('Server domain pattern added to blocklist.'));
} else {
// Edit the entries from blocklist
$blocklist = [];

View file

@ -47,7 +47,7 @@ class DBSync extends BaseAdmin
if (intval($curr) == $update) {
DI::config()->set('system', 'build', intval($curr) + 1);
}
info(DI::l10n()->t('Update has been marked successful') . EOL);
info(DI::l10n()->t('Update has been marked successful'));
}
DI::baseUrl()->redirect('admin/dbsync');
}

View file

@ -51,7 +51,7 @@ class Delete extends BaseAdmin
Item::markForDeletion(['guid' => $guid]);
}
info(DI::l10n()->t('Item marked for deletion.') . EOL);
info(DI::l10n()->t('Item marked for deletion.'));
DI::baseUrl()->redirect('admin/item/delete');
}

View file

@ -109,7 +109,7 @@ class Users extends BaseAdmin
$uid = $a->argv[3];
$user = User::getById($uid, ['username', 'blocked']);
if (!DBA::isResult($user)) {
notice('User not found' . EOL);
notice(DI::l10n()->t('User not found'));
DI::baseUrl()->redirect('admin/users');
return ''; // NOTREACHED
}

View file

@ -44,7 +44,7 @@ class Apps extends BaseModule
$apps = Nav::getAppMenu();
if (count($apps) == 0) {
notice(DI::l10n()->t('No installed applications.') . EOL);
notice(DI::l10n()->t('No installed applications.'));
}
$tpl = Renderer::getMarkupTemplate('apps.tpl');

View file

@ -112,7 +112,7 @@ class Contact extends BaseModule
}
if (!DBA::exists('contact', ['id' => $contact_id, 'uid' => local_user(), 'deleted' => false])) {
notice(DI::l10n()->t('Could not access contact record.') . EOL);
notice(DI::l10n()->t('Could not access contact record.'));
DI::baseUrl()->redirect('contact');
return; // NOTREACHED
}
@ -145,7 +145,7 @@ class Contact extends BaseModule
);
if (!DBA::isResult($r)) {
notice(DI::l10n()->t('Failed to update contact record.') . EOL);
notice(DI::l10n()->t('Failed to update contact record.'));
}
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id, 'uid' => local_user(), 'deleted' => false]);
@ -364,7 +364,7 @@ class Contact extends BaseModule
Nav::setSelected('contact');
if (!local_user()) {
notice(DI::l10n()->t('Permission denied.') . EOL);
notice(DI::l10n()->t('Permission denied.'));
return Login::form();
}
@ -398,7 +398,7 @@ class Contact extends BaseModule
self::blockContact($contact_id);
$blocked = Model\Contact::isBlockedByUser($contact_id, local_user());
info(($blocked ? DI::l10n()->t('Contact has been blocked') : DI::l10n()->t('Contact has been unblocked')) . EOL);
info(($blocked ? DI::l10n()->t('Contact has been blocked') : DI::l10n()->t('Contact has been unblocked')));
DI::baseUrl()->redirect('contact/' . $contact_id);
// NOTREACHED
@ -408,7 +408,7 @@ class Contact extends BaseModule
self::ignoreContact($contact_id);
$ignored = Model\Contact::isIgnoredByUser($contact_id, local_user());
info(($ignored ? DI::l10n()->t('Contact has been ignored') : DI::l10n()->t('Contact has been unignored')) . EOL);
info(($ignored ? DI::l10n()->t('Contact has been ignored') : DI::l10n()->t('Contact has been unignored')));
DI::baseUrl()->redirect('contact/' . $contact_id);
// NOTREACHED
@ -418,7 +418,7 @@ class Contact extends BaseModule
$r = self::archiveContact($contact_id, $orig_record);
if ($r) {
$archived = (($orig_record['archive']) ? 0 : 1);
info((($archived) ? DI::l10n()->t('Contact has been archived') : DI::l10n()->t('Contact has been unarchived')) . EOL);
info((($archived) ? DI::l10n()->t('Contact has been archived') : DI::l10n()->t('Contact has been unarchived')));
}
DI::baseUrl()->redirect('contact/' . $contact_id);
@ -459,7 +459,7 @@ class Contact extends BaseModule
}
self::dropContact($orig_record);
info(DI::l10n()->t('Contact has been removed.') . EOL);
info(DI::l10n()->t('Contact has been removed.'));
DI::baseUrl()->redirect('contact');
// NOTREACHED

View file

@ -91,7 +91,7 @@ class Advanced extends BaseModule
}
if (!$r) {
notice(DI::l10n()->t('Contact update failed.') . EOL);
notice(DI::l10n()->t('Contact update failed.'));
}
return;

View file

@ -75,7 +75,7 @@ class Directory extends BaseModule
$profiles = Profile::searchProfiles($pager->getStart(), $pager->getItemsPerPage(), $search);
if ($profiles['total'] === 0) {
notice(DI::l10n()->t('No entries (some entries may be hidden).') . EOL);
notice(DI::l10n()->t('No entries (some entries may be hidden).'));
} else {
if (in_array('small', $app->argv)) {
$photo = 'thumb';

View file

@ -13,7 +13,7 @@ class FollowConfirm extends BaseModule
{
$uid = local_user();
if (!$uid) {
notice(DI::l10n()->t('Permission denied.') . EOL);
notice(DI::l10n()->t('Permission denied.'));
return;
}

View file

@ -75,7 +75,7 @@ class Invite extends BaseModule
$recipient = trim($recipient);
if (!filter_var($recipient, FILTER_VALIDATE_EMAIL)) {
notice(DI::l10n()->t('%s : Not a valid email address.', $recipient) . EOL);
notice(DI::l10n()->t('%s : Not a valid email address.', $recipient));
continue;
}
@ -111,15 +111,15 @@ class Invite extends BaseModule
$current_invites++;
DI::pConfig()->set(local_user(), 'system', 'sent_invites', $current_invites);
if ($current_invites > $max_invites) {
notice(DI::l10n()->t('Invitation limit exceeded. Please contact your site administrator.') . EOL);
notice(DI::l10n()->t('Invitation limit exceeded. Please contact your site administrator.'));
return;
}
} else {
notice(DI::l10n()->t('%s : Message delivery failed.', $recipient) . EOL);
notice(DI::l10n()->t('%s : Message delivery failed.', $recipient));
}
}
notice(DI::l10n()->tt('%d message sent.', '%d messages sent.', $total) . EOL);
notice(DI::l10n()->tt('%d message sent.', '%d messages sent.', $total));
}
public static function content(array $parameters = [])

View file

@ -191,7 +191,7 @@ class Introductions extends BaseNotifications
}
if (count($notifications['notifications']) == 0) {
notice(DI::l10n()->t('No introductions.') . EOL);
notice(DI::l10n()->t('No introductions.'));
$notificationNoContent = DI::l10n()->t('No more %s notifications.', $notifications['ident']);
}

View file

@ -64,7 +64,7 @@ class Contacts extends BaseProfile
$o = self::getTabsHTML($a, 'contacts', $is_owner, $nickname);
if (!count($a->profile) || $a->profile['hide-friends']) {
notice(DI::l10n()->t('Permission denied.') . EOL);
notice(DI::l10n()->t('Permission denied.'));
return $o;
}
@ -92,7 +92,7 @@ class Contacts extends BaseProfile
$contacts_stmt = DBA::select('contact', [], $condition, $params);
if (!DBA::isResult($contacts_stmt)) {
notice(DI::l10n()->t('No contacts.') . EOL);
notice(DI::l10n()->t('No contacts.'));
return $o;
}

View file

@ -102,7 +102,7 @@ class Status extends BaseProfile
$last_updated_key = "profile:" . $a->profile['uid'] . ":" . local_user() . ":" . $remote_contact;
if (!empty($a->profile['hidewall']) && !$is_owner && !$remote_contact) {
notice(DI::l10n()->t('Access to this profile has been restricted.') . EOL);
notice(DI::l10n()->t('Access to this profile has been restricted.'));
return '';
}