summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
authorxue <>2007-07-24 02:05:56 +0000
committerxue <>2007-07-24 02:05:56 +0000
commit3d2cc3696a378d79fb4fa36e76ddc2568ad0835d (patch)
tree3a89e439e686c5410add02c5b59886d9e8aefd99 /framework/Util
parent38974e8679aac5b63e372f5421f990da6882fde2 (diff)
removed geshi from the other controls.
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TVarDumper.php5
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('/&lt;\\?php<br \\/>/','',$result,1);
}
else
return self::$_output;