mirror of
https://github.com/friendica/friendica
synced 2025-04-27 19:10:11 +00:00
Add detailed error messages for admin user in Core\Renderer and Render\FriendicaSmartyEngine
This commit is contained in:
parent
64e89a516d
commit
8b05af176c
2 changed files with 26 additions and 8 deletions
|
@ -49,8 +49,12 @@ final class FriendicaSmartyEngine extends TemplateEngine
|
|||
$this->smarty = new FriendicaSmarty($this->theme, $this->theme_info);
|
||||
|
||||
if (!is_writable(DI::basePath() . '/view/smarty3')) {
|
||||
DI::logger()->critical(DI::l10n()->t('The folder view/smarty3/ must be writable by webserver.'));
|
||||
throw new InternalServerErrorException(DI::l10n()->t('Friendica can\'t display this page at the moment, please contact the administrator or check the Friendica log for errors.'));
|
||||
$admin_message = DI::l10n()->t('The folder view/smarty3/ must be writable by webserver.');
|
||||
DI::logger()->critical($admin_message);
|
||||
$message = is_site_admin() ?
|
||||
$admin_message :
|
||||
DI::l10n()->t('Friendica can\'t display this page at the moment, please contact the administrator.');
|
||||
throw new InternalServerErrorException($message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue