openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 2dda4e9d5085d3b1cc22a72e6f6c85a04d985ab5
parent 007fc6fe864c30691c52b141227e67886f81396b
Author: dankert <devnull@localhost>
Date:   Sun, 19 Apr 2009 22:04:53 +0200

Neue Präprozessor-Anweisung: IF-ATTR-VALUE

Diffstat:
serviceClasses/TemplateEngine.class.php | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/serviceClasses/TemplateEngine.class.php b/serviceClasses/TemplateEngine.class.php @@ -234,8 +234,12 @@ class TemplateEngine { $found = false; foreach( $attr as $attrName=>$attrValue ) + { if ( strpos($line,'#IF-ATTR '.$attrName)!==FALSE ) $found = true; + if ( strpos($line,'#IF-ATTR-VALUE '.$attrName.':'.$attrValue)!==FALSE ) + $found = true; + } if ( ! $found ) $ignore = true; }