Bugs item #783569, was opened at 2003-08-05 08:25
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=783569&group_id=31885
Category: Template
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jordi (jordicontesti)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parse in template class (phplib 7.4 pre2)
Initial Comment:
I think the "parse" function in template class is wrong.
The function returns the variable $str, but it should
return the variable $this->get_var($target). I found this
problem when I have pass to the function a array
variable and the function have returned me the parsing
of the last element, and not the append of the all
elements of the array.
Suggested modification:
on the last line of the parse function, replace:
return $str;
with
return $this->get_var($target);
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2003-09-29 10:51
Message:
Logged In: NO
The problem is carried through if you use pparse(). If you ahve $unknowns
set to "remove", forget to fill in one of the placeholders then call pparse(),
the content outputted to the browser still has the forgotten placeholder in
plain sight.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=783569&group_id=31885
|