summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-05-07 16:54:41 +0200
committerUrban Müller2014-05-07 16:54:41 +0200
commit0b7da7960a694fe2fa50f041dedcee43f334d90d (patch)
tree34b89533791f4b548d5e68466d36416f83b1e75a
parente2e2de23c713a1b84ba0e1ab57dc26b1846cc614 (diff)
downloaditools-0b7da7960a694fe2fa50f041dedcee43f334d90d.tar.gz
itools-0b7da7960a694fe2fa50f041dedcee43f334d90d.tar.bz2
itools-0b7da7960a694fe2fa50f041dedcee43f334d90d.zip
make sure errors come in front
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 7813da9..90fa5a8 100644
--- a/it.class
+++ b/it.class
@@ -238,7 +238,7 @@ static function error($p = array())
it::mail(array('To' => $p['to'], 'Subject' => substr($p['title'], 0, 160), 'Body' => $body, 'Cc' => $GLOBALS['it_defaultconfig']['error_cc'], 'forcemail' => !it::is_devel()));
}
else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web
- echo "<pre>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE
+ echo "<pre style='z-index:10000; position:relative; background:white'>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE
else # toscreen mode: shell (outputs to stderr)
error_log(substr($p['title'], 0, 100000) . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']} Url: $url") . " " . (EDC('verboseerrors') ? D($p['locals']) : ""));
}