[pmwiki-users] help with function

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 4 08:07:52 CDT 2005


On Thu, Aug 04, 2005 at 09:01:00AM +0100, Hans wrote:
> ...
> I wrapped it into a function like this:
> 
> function SetRightBarBackground($sc) {
> global $HTMLStylesFmt;
> $grb = FmtPageName('$Group.RightBar',$pagename);
> $srb = FmtPageName('$SiteGroup.RightBar',$pagename);

$pagename isn't defined globally or passed as a parameter here, so
it ends up being an empty string.  As a result, $grb always ends up
with '$Group.RightBar' -- no substitution takes place.

Pm




More information about the pmwiki-users mailing list