strange JText::sprintf Behaviour
Posted: Thu Feb 21, 2008 12:39 am
Hi!
While adapting a Module to J!1.5 I came across something reallly strange...
When I publish the Module to the Top-Position of the Template, <?php echo JText::sprintf( 'HINAME', $user->get('name') ); ?> works fine and outputs "Hello Administrator,", but when I publish it further down the Page (i.E. right column), the same function just outputs "HINAME"
I tried it on different Templates, different Module-Positions, tried stripping down the code to only <?php echo JText::sprintf( 'HINAME', $user->get('name') ); ?> etc.
Even when I copy the Module and place one in the Top-Position and another one in right, the one on Top will say "Hello Administrator,", while the other one says "HINAME", although it's exatly the same code
Please help!
While adapting a Module to J!1.5 I came across something reallly strange...
When I publish the Module to the Top-Position of the Template, <?php echo JText::sprintf( 'HINAME', $user->get('name') ); ?> works fine and outputs "Hello Administrator,", but when I publish it further down the Page (i.E. right column), the same function just outputs "HINAME"
I tried it on different Templates, different Module-Positions, tried stripping down the code to only <?php echo JText::sprintf( 'HINAME', $user->get('name') ); ?> etc.
Even when I copy the Module and place one in the Top-Position and another one in right, the one on Top will say "Hello Administrator,", while the other one says "HINAME", although it's exatly the same code
Please help!