Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

do not send a 500 server error message and redirect to ERROR_FRIENDLY…

…_PAGE_PATH if we are running on climode and ERROR_FRIENDLY_PAGE_PATH is set
  • Loading branch information...
commit 6cf4e218a81e81e01075b666e35815d66171d2a3 1 parent 8fd6adc
Marcos Sánchez authored mikeho committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  includes/qcodo/_core/framework/QErrorHandler.class.php
View
2  includes/qcodo/_core/framework/QErrorHandler.class.php
@@ -108,7 +108,7 @@ protected static function Run() {
return false;
}
} else {
- if (defined('ERROR_FRIENDLY_PAGE_PATH') && ERROR_FRIENDLY_PAGE_PATH) {
+ if (defined('ERROR_FRIENDLY_PAGE_PATH') && ERROR_FRIENDLY_PAGE_PATH && !QApplication::$CliMode) {
// Reset the Buffer
while(ob_get_level()) ob_end_clean();
header("HTTP/1.1 500 Internal Server Error");
Please sign in to comment.
Something went wrong with that request. Please try again.