It cannot be guaranteed that this constant always exists (for example after emptying caches).
See #2729
// useful. Thus the code to retrieve the request information
// must be absolutely lightweight.
$requestInformation = '';
- if (ENABLE_PRODUCTION_DEBUG_MODE && isset($_SERVER['REQUEST_URI'])) {
+ if (defined('ENABLE_PRODUCTION_DEBUG_MODE') && ENABLE_PRODUCTION_DEBUG_MODE && isset($_SERVER['REQUEST_URI'])) {
$requestInformation = substr($_SERVER['REQUEST_URI'], 0, 90);
if (isset($_REQUEST['className']) && isset($_REQUEST['actionName'])) {
$requestInformation .= ' ('.$_REQUEST['className'].':'.$_REQUEST['actionName'].')';