EOL removed
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user