made it more compatible with the version in 0.9.14

This commit is contained in:
Ralf Becker 2003-03-31 16:51:25 +00:00
parent ea968b1cd6
commit 64309e9e5a

View File

@ -139,10 +139,13 @@
$this->set_var($name, $m[1][0]); $this->set_var($name, $m[1][0]);
// ralfbecker: readded for compatibility with old way to set blocks // ralfbecker: readded for compatibility with old way to set blocks
$this->set_var($parent,preg_replace($reg,'{'.$name.'}',$str)); $this->set_var($parent,preg_replace($reg,'{'.$name.'}',$str));
/* this is not compatible with the way 0.9.14 handles templates
if ($name != $handle) if ($name != $handle)
{ {
$this->set_var($handle, $m[1][0]); $this->set_var($handle, $m[1][0]);
} }
*/
} }
/* public: set_var(array $values) /* public: set_var(array $values)