Date: 06/21/01
- Next message: Markus Dobel: "Re: [phplib] drop view success"
- Previous message: Joern Muehlencord: "[phplib] drop view success"
- Next in thread: Ben Curtis: "Re: [phplib] template class 1.5 bug - removes $[0-9]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I guess I should double check my typing when I write after a long day.
> In Template::set_var(), I replaced
> $this->varvals[$varname] = $value;
> with
> $value = ereg_replace('\$([0-9])', '\$\\\1', $value);
> $this->varvals[$varname] = $value;
> and
> $this->varvals[$k] = $v;
> with
> $v = ereg_replace('\$([0-9])', '\$\\1', $v);
> $this->varvals[$k] = $v;
Notice the two regexs are different. The first pattern has an extra slash in
the second argument - the second pattern is the correct pattern.
Layne Weathers
Ifworld, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Markus Dobel: "Re: [phplib] drop view success"
- Previous message: Joern Muehlencord: "[phplib] drop view success"
- Next in thread: Ben Curtis: "Re: [phplib] template class 1.5 bug - removes $[0-9]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

