Use debug settings to determine whether to display error location

This commit is contained in:
Kijin Sung 2020-03-19 17:50:59 +09:00
parent 339fd234a5
commit 1f9fe48170
5 changed files with 10 additions and 4 deletions

View file

@ -48,6 +48,12 @@ class messageView extends message
if(strncasecmp('https://', Context::getRequestUri(), 8) === 0) $ssl_mode = true;
}
// Disable location if debug not available
if (!Rhymix\Framework\Debug::isEnabledForCurrentUser())
{
$location = null;
}
// Remove basedir from location (if any)
if ($location && starts_with(\RX_BASEDIR, $location))
{