diff options
Diffstat (limited to 'framework/Util/TVarDumper.php')
-rw-r--r-- | framework/Util/TVarDumper.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/Util/TVarDumper.php b/framework/Util/TVarDumper.php index 72591355..c1be82de 100644 --- a/framework/Util/TVarDumper.php +++ b/framework/Util/TVarDumper.php @@ -50,9 +50,8 @@ class TVarDumper self::dumpInternal($var,0);
if($highlight)
{
- Prado::using('System.3rdParty.geshi.geshi');
- $geshi = new GeSHi(self::$_output, 'vardump');
- return $geshi->parse_code();
+ $result=highlight_string("<?php\n".self::$_output,true);
+ return preg_replace('/<\\?php<br \\/>/','',$result,1);
}
else
return self::$_output;
|