[pmwiki-devel] (no subject)

Petko Yotov 5ko at 5ko.fr
Tue Nov 3 00:35:51 PST 2026


On 03/11/2026 09:22, Simon wrote:
> I have a string in a variable like this
> 
> "https://example.com/pmwiki/pub/skins/$Skin"
> 
> Is there a helper function that can substitute the variable for its
> value?

If the string is wrapped in double quotes like your example, you need to 
declare global $Skin.

If it is in single quotes, there is FmtPageName:

   $format = 'https://example.com/pmwiki/pub/skins/$Skin';
   $expanded = FmtPageName($format, $pagename);

If you notice this in skins or normal output that previously worked, let 
me know as it may be a recent bug.

Petko



More information about the pmwiki-devel mailing list