summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2007-07-02 15:53:51 +0000
committerUrban Müller2007-07-02 15:53:51 +0000
commit43a2a17959a4ed185c89b2d9c1a990a83d02d54e (patch)
treece44eb5d47662ef36650c66bbfc989ce19fb5472 /it.class
parentf036b5e605e05d75ec86d0f6c12c4560d7b6dd6a (diff)
downloaditools-43a2a17959a4ed185c89b2d9c1a990a83d02d54e.tar.gz
itools-43a2a17959a4ed185c89b2d9c1a990a83d02d54e.tar.bz2
itools-43a2a17959a4ed185c89b2d9c1a990a83d02d54e.zip
show long stuff last
Diffstat (limited to 'it.class')
-rw-r--r--it.class7
1 files changed, 5 insertions, 2 deletions
diff --git a/it.class b/it.class
index 78161f9..f30b5f8 100644
--- a/it.class
+++ b/it.class
@@ -118,9 +118,12 @@ function error($p = array(), $body = "", $to = "")
$title="Error in $url";
if (memory_get_usage() < 50000000)
- $stack = "\nTrace: " . it_debug::backtrace() . "\n\nStack:\n" . print_r(debug_backtrace(), true);
+ {
+ $trace = "\n\nTrace: " . it_debug::backtrace();
+ $stack = "\n\nStack:\n" . print_r(debug_backtrace(), true);
+ }
- $body .= "\nUrl: $url\n\n\$_REQUEST: ".print_r($_REQUEST, true) . $stack . "\n\$_SERVER: " . print_r($_SERVER, true);
+ $body .= "\nUrl: $url$trace\n\n\$_REQUEST: ".print_r($_REQUEST, true) . "\n\$_SERVER: " . print_r($_SERVER, true) . $stack;
if (!ereg('live', $GLOBALS['ULTRASERVERTYPE']))
{