Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

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!
Tasklist

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
Task Type Bug Report
Category Instructions
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity High
Priority Normal
Reported Version 2.0-beta2
Due in Version 2.0-beta3
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The 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.

Loading...