Home » HTML » HTML_Template_IT » Bug #5774
HTML_Template_ITX->buildFunctionlist
Details
| Submitted | 2005-10-25 08:34 UTC |
|---|---|
| From | th_ru at web dot de |
| Assigned | dufuz |
| Status | Closed |
| Package | HTML_Template_IT |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| 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
);