diff --git a/include/compat.inc.php b/include/compat.inc.php index 5bc255bf..442325e6 100644 --- a/include/compat.inc.php +++ b/include/compat.inc.php @@ -99,7 +99,7 @@ if (!function_exists('errorToExceptionHandler')) { if ($serendipity['production'] === 'debug') { // We don't want the notices - but everything else ! - echo '

== FULL DEBUG ERROR MODE ==

'; + echo ' == FULL DEBUG ERROR MODE == '; echo '
';
             // trying to be as detailled as possible - but beware using args containing sensibel data like passwords
             if (function_exists('debug_backtrace') && version_compare(PHP_VERSION, '5.3.6') >= 0) {
@@ -122,7 +122,7 @@ if (!function_exists('errorToExceptionHandler')) {
             exit; // make sure to exit in case of database connection errors.
         }
         if ($serendipity['production'] === false) {
-            echo '

== TESTING ERROR MODE ==

'; + echo ' == TESTING ERROR MODE == '; echo '
';
             // see notes above
             if (!$serendipity['dbConn'] || version_compare(PHP_VERSION, '5.3', '<')) {
@@ -136,29 +136,20 @@ if (!function_exists('errorToExceptionHandler')) {
         if ($serendipity['production'] === true) {
             if( $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) {
                 // ToDo: enhance for more special serendipity error needs
-                $str  = '

== SERENDIPITY ERROR ==

'; - $str .= '

Please correct:

'; + $str = " == SERENDIPITY ERROR == "; $str .= '

' . $errStr . ' in ' . $errFile . ' on line ' . $errLine . '

'; #var_dump(headers_list()); if (headers_sent()) { serendipity_die($str); // case HTTP headers: needs to halt with die() here, else it will path through and gets written underneath blog content, which hardly isn't seen by many users } else { - // this also reacts on non eye-displayed errors with following small javascript, while being in tags like