Home » HTML » HTML_Template_Flexy » Bug #4140
getModifierWrapper don't return plugin method
Details
| Submitted | 2005-04-14 06:47 UTC |
|---|---|
| From | yukihiro_o at infoseek dot jp |
| Status | No Feedback |
| Package | HTML_Template_Flexy |
| PHP Version | 5.0.3 |
| OS | linux |
| 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);?>