Skip to content
Browse files

[code] Allow Debug class to still get called before constants are cre…

…ated
  • Loading branch information...
1 parent 1c400b5 commit da25fef2222d48cc20f6b906571b80b4c8acaf3a @Anahkiasen committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cerberus/class/core.debug.php
View
4 cerberus/class/core.debug.php
@@ -24,7 +24,7 @@ public static function handle($exception, $message = null, $type = null)
: self::$e->getMessage();
// Displaying error or sending it
- if(LOCAL) echo self::render();
+ if(defined('LOCAL') and LOCAL) echo self::render();
else self::send();
}
@@ -49,7 +49,7 @@ private static function render()
{
// File
$render .= '<div style="margin-left:' .($i * 25). 'px">';
- $render .= '<h3>' .basename($t['file']). '[' .$t['line']. ']</h3>';
+ $render .= '<h3>' .basename(a::get($t, 'file')). '[' .a::get($t, 'line'). ']</h3>';
// Arguments
if(!empty($t['args'])) $t['args'] = self::implodeParams($t['args']);

0 comments on commit da25fef

Please sign in to comment.
Something went wrong with that request. Please try again.