mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Update admin check function in Debug::displayErrorScreen()
This commit is contained in:
parent
e22551b224
commit
b1a4d322c7
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ class Debug
|
|||
}
|
||||
|
||||
// Localize the error message.
|
||||
$display_error_message = ini_get('display_errors') || (\Context::get('logged_info') && toBool(\Context::get('logged_info')->is_admin));
|
||||
$display_error_message = ini_get('display_errors') || Session::isAdmin();
|
||||
$message = $display_error_message ? $message : lang('msg_server_error_see_log');
|
||||
if ($message === 'msg_server_error_see_log')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue