N°2847 Add message on alpha/development fatal error pages 🤫

This commit is contained in:
Stephen Abello
2020-11-19 13:39:04 +01:00
parent 05c53d35b7
commit aef77d8f93
4 changed files with 44 additions and 0 deletions

View File

@@ -2430,4 +2430,11 @@ class utils
$e = new CoreException($sMessage, null, '', $oException);
throw $e;
}
/**
* @since 3.0.0
*/
public static function IsEasterEggAllowed(){
return (stripos(ITOP_VERSION, 'alpha') !== false) || utils::IsDevelopmentEnvironment();
}
}