Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.0

Bug #5774 HTML_Template_ITX->buildFunctionlist
Submitted: 2005-10-25 03:34 UTC Modified: 2005-10-28 05:45 UTC
From: th_ru at web dot de Assigned: dufuz
Status: Closed Package: HTML_Template_IT
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-25 03: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 );

Comments

 [2005-10-28 05:45 UTC] dufuz
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.