openrat-cms

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

commit 64d2821c676e7f8d74a022e7c5625bbae40ad688
parent 0a626f0b910ea635a5097aa2faa2315616ec231c
Author: dankert <devnull@localhost>
Date:   Wed, 23 Dec 2009 23:01:09 +0100

IF-ATTR-Makro: Abschließendes '#' erwarten.

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

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