commit 87856613be3adef1665be39704b21ba7017137e1
parent e4e13cae05d4b140406465f4da81609fba9a5919
Author: dankert <devnull@localhost>
Date: Mon, 22 Oct 2007 23:22:09 +0200
Variable "attr_debug_info" setzen.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/serviceClasses/TemplateEngine.class.php b/serviceClasses/TemplateEngine.class.php
@@ -144,7 +144,7 @@ class TemplateEngine
list( $type,$value ) = $parts;
$invert = '';
- if ( $type{0}=='!' )
+ if ( substr($type,0,1)=='!' )
{
$type = substr($type,1);
$invert = '! ';
@@ -210,7 +210,8 @@ class TemplateEngine
$values[] = "'".$attrName."'=>".$this->attributeValue($attrValue);
}
// fwrite( $outFileHandler,'<?php /* source: '.$inFileName.' - compile time: '.date('r').' */ ?'.'>');
- fwrite( $outFileHandler,'<?php $attr'.$hash.' = array('.implode(',',$values).') ?>');
+ fwrite( $outFileHandler,'<?php $attr'.$hash.'_debug_info = \''.serialize($attr).'\' ?'.'>');
+ fwrite( $outFileHandler,'<?php $attr'.$hash.' = array('.implode(',',$values).') ?'.'>');
foreach( $attr as $attrName=>$attrValue )