Re: [phplib] template class 1.5 bug - removes $[0-9] From: Layne Weathers (layne <email protected>)
Date: 06/21/01

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>