PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #3971

{if:variable} statement misinterpretation

Details

Request #3971{if:variable} statement misinterpretation
Submitted2005-03-27 14:50 UTC
Fromrbenea at bluestardesign dot ro
StatusWont fix
PackageHTML_Template_Flexy
PHP Version5.0.2
OSFedora Core 1
Roadmaps(Not assigned)

Comments

[2005-03-27 14:50 UTC] rbenea at bluestardesign dot ro

Description:
------------
Hi,

The first {if:keywords} is interpreted as a module. If I move the exact code {if:keywords}?keywords={keywords}{end:} outside the href=".." (ex: before </a> ) it works.

Regards,
Rares Benea

Reproduce code:
---------------
<td align="right"><strong>{translate(#Switch to#)}:</strong> <a href="{makeUrl(#fastList#)}cid/{catID}/{if:keywords}?keywords={keywords}{end:}">{translate(#Detailed view#)}</a></td>

</tr>
</table>
{if:keywords}<strong>Rezultatele cautarii dupa:</strong> {keywords}{end:}

Expected result:
----------------
<td align="right"><strong>Switch to:</strong> <a href="http://flr.bsd/index.php/shop/list/action/fastList/cid/5/?keywords=acer">Detailed view</a></td>

</tr>
</table>
<strong>Rezultatele cautarii dupa:</strong> acer<BR>

Actual result:
--------------
<td align="right"><strong>Switch to:</strong> <a href="http://flr.bsd/index.php/shop/list/action/fastList/cid/5/[pear_error: message="could not find plugin with method: 'keywords' code=0 mode=return level=notice prefix="" info=""]?keywordsacer{else:}{end:}>Detailed view</a></td>

</tr>
</table>
<strong>Rezultatele cautarii dupa:</strong> acer<BR>

[2005-03-27 14:57 UTC] rbenea at bluestardesign dot ro

Thanks for the fast reply and I hope you can fix this in the feature. I'll try to search for a workaround.

Best regards,
Rares Benea