require('inc/config-global.php');
// Redirect only to registration page when this script is installed
-if ((isExtensionActive('debug')) && (getTotalFatalErrors() == '0')) {
+if ((isExtensionActive('debug')) && (!ifFatalErrorsDetected())) {
// Is the request parameter set?
if (isPostRequestParameterSet('request')) {
// Handle the request
if (DEBUG_HANDLE_REQUEST(postRequestParameter('request'))) {
// Construct FQFN for the module
- $inc = sprintf("inc/debug/%s/request_%s",
+ $inc = sprintf("inc/debug/%s/request_%s.php",
getConfig('debug_mode'),
SQL_ESCAPE(postRequestParameter('request'))
);