cvs: pear /HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php

From: Date: Wed, 10 Dec 2003 15:12:28 +0000
Subject: cvs: pear /HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14761@lists.php.net to get a copy of this message
alan_k Wed Dec 10 10:12:28 2003 EDT Modified files: /pear/HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php Log: get the flexy:raw to work. Index: pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php diff -u pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.18 pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.19 --- pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.18 Wed Dec 10 08:23:49 2003 +++ pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php Wed Dec 10 10:12:28 2003 @@ -10,7 +10,7 @@ * one instance of these exists for each namespace. * * -* @version $Id: Tag.php,v 1.18 2003/12/10 13:23:49 alan_k Exp $ +* @version $Id: Tag.php,v 1.19 2003/12/10 15:12:28 alan_k Exp $ */ class HTML_Template_Flexy_Compiler_Standard_Tag { @@ -127,7 +127,7 @@ if (strtoupper($k) == 'FLEXY:RAW') { - if (!is_object($v)) { + if (!isset($v[1]) || !is_object($v[1])) { PEAR::raiseError( 'flexy:raw only accepts a variable or method call as an argument, eg.'. ' flexy:raw="{somevalue}" you provided something else.' . @@ -135,7 +135,7 @@ null, PEAR_ERROR_DIE); } - $ret .= ' ' . $v->compile($this->compiler); + $ret .= ' ' . $v[1]->compile($this->compiler); continue; } @@ -168,6 +168,7 @@ // otherwise its a key="sometext{andsomevars}" $ret .= " {$k}="; + foreach($v as $item) { if (is_string($item)) { $ret .= $item;

« previous php.pear.cvs (#14761) next »