PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_IT » Bug #5774

HTML_Template_ITX->buildFunctionlist

Details

Submitted2005-10-25 08:34 UTC
Fromth_ru at web dot de
Assigneddufuz
StatusClosed
PackageHTML_Template_IT
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-10-25 08:34 UTC] th_ru at web dot de

Description:
------------
In function "HTML_Template_ITX->buildFunctionlist" you find 2 lines:

...

$this->template = str_replace($regs[0] . $head . ')',
'{__function' . $num . '__}', $this->template
);
$template = str_replace($regs[0] . $head . ')',
'{__function' . $num . '__}', $template
);
...

As a result of this you are forced to use '{' and '}' as delimiters (var $openingDelimiter, var $closingDelimiter in class HTML_Template_IT)

Solution:

Replace the 2 lines with the following:

$this->template = str_replace($regs[0] . $head . ')',
$this->openingDelimiter . '__function' . $num . '__' . $this->closingDelimiter, $this->template
);
$template = str_replace($regs[0] . $head . ')',
$this->openingDelimiter . '__function' . $num . '__' . $this->closingDelimiter, $template
);