Open Power Template 2.x family
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#65 - opt:separator in opt:selector produces invalid PHP code
Attached to Project:
Open Power Template
Opened by Zyx (Zyx) - Tuesday, 10 March 2009, 06:45 GMT-8
Last edited by Zyx (Zyx) - Sunday, 22 March 2009, 01:40 GMT-8
Opened by Zyx (Zyx) - Tuesday, 10 March 2009, 06:45 GMT-8
Last edited by Zyx (Zyx) - Sunday, 22 March 2009, 01:40 GMT-8
|
DetailsThe following code:
~~~~ <opt:selector name="menu"> <opt:separator><li class="separator"></li></opt:separator> <opt:position><li><a parse:href="url($menu.address)">{$menu.title}</a></li></opt:position> </opt:selector> ~~~~ Makes the script crash, because the generated PHP code is invalid: ~~~~ Parse error: syntax error, unexpected T_IF, expecting T_CASE or T_DEFAULT or '}' in /../template.tpl.php on line xx ~~~~ The problem is that opt:separator adds the extra PHP code that breaks the switch() command in opt:selector. |
This task depends upon
Closed by Zyx (Zyx)
Sunday, 22 March 2009, 01:40 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 66.
Sunday, 22 March 2009, 01:40 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 66.