mirror of
https://github.com/friendica/friendica
synced 2025-04-24 05:50:11 +00:00
Merge pull request #9724 from MrPetovan/bug/notices
Various improvements
This commit is contained in:
commit
54db693e16
4 changed files with 18 additions and 20 deletions
|
@ -69,9 +69,15 @@ class HTTPException
|
|||
$message = $explanation[$e->getCode()] ?? '';
|
||||
}
|
||||
|
||||
$vars = ['$title' => $title, '$message' => $message, '$back' => DI::l10n()->t('Go back')];
|
||||
$vars = [
|
||||
'$title' => $title,
|
||||
'$message' => $message,
|
||||
'$back' => DI::l10n()->t('Go back'),
|
||||
'$stack_trace' => DI::l10n()->t('Stack trace:'),
|
||||
];
|
||||
|
||||
if (is_site_admin()) {
|
||||
$vars['$thrown'] = DI::l10n()->t('Exception thrown in %s:%d', $e->getFile(), $e->getLine());
|
||||
$vars['$trace'] = $e->getTraceAsString();
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ final class ACLFormatter
|
|||
private function sanitizeItem(string &$item) {
|
||||
// The item is an ACL int value
|
||||
if (intval($item)) {
|
||||
$item = '<' . intval(Strings::escapeTags(trim($item))) . '>';
|
||||
$item = '<' . intval($item) . '>';
|
||||
// The item is a allowed ACL character
|
||||
} elseif (in_array($item, [Group::FOLLOWERS, Group::MUTUALS])) {
|
||||
$item = '<' . $item . '>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue