mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Use debug settings to determine whether to display error location
This commit is contained in:
parent
339fd234a5
commit
1f9fe48170
5 changed files with 10 additions and 4 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue