diff options
author | xue <> | 2007-07-24 02:05:56 +0000 |
---|---|---|
committer | xue <> | 2007-07-24 02:05:56 +0000 |
commit | 3d2cc3696a378d79fb4fa36e76ddc2568ad0835d (patch) | |
tree | 3a89e439e686c5410add02c5b59886d9e8aefd99 /framework/Util/TVarDumper.php | |
parent | 38974e8679aac5b63e372f5421f990da6882fde2 (diff) |
removed geshi from the other controls.
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;
|