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 #4140

getModifierWrapper don't return plugin method

Details

Submitted2005-04-14 06:47 UTC
Fromyukihiro_o at infoseek dot jp
StatusNo Feedback
PackageHTML_Template_Flexy
PHP Version5.0.3
OSlinux
Roadmaps(Not assigned)

Comments

[2005-04-14 06:47 UTC] yukihiro_o at infoseek dot jp

Description:
------------
Description
---------------
now, plugin which name of beginning charactor is h, u, r, n and b, can't use.

in HTML/Template/Flexy/Compiler/Standard.php, 462 line

$modifier = strlen(trim($element->modifier)) ? $element->modifier : ' ';

switch ($modifier{0}) {

this should maybe
switch ($modifire) {

Reproduce code:
---------------
plugin:
class ptest {
function utest(){
echo "test";
}
}
template:
{ptest:utest}

Expected result:
----------------
compiled code:
<?php echo $this->plugin("utest",$t->ptest);?>

Actual result:
--------------
compiled code:
<?php echo urlencode($t->ptest);?>