[Pmwiki-users] excluding own Globals from UnsafeGlobals[] / own SafeGlobals

Knut Alboldt alboldt
Mon May 24 13:54:16 CDT 2004


At 24.05.2004 16:03, Pm wrote:
>On Mon, May 24, 2004 at 03:48:29PM +0200, Knut Alboldt wrote:
>
> > Is there a way (without modifying pmwiki.php) to keep own global vars out
> > of UnsafeGlobals to define OwnSafeGlobals ?
>
>Um, you might try adding the following to your local.php:
>
>    $UnsafeGlobals = array_diff($UnsafeGlobals,array('PmWikiSkin'));
>
>This effectively removes the $PmWikiSkin variable from $UnsafeGlobals,
>making it "safe" again for substitution.
>
>Pm

Works perfect !

Thanks

Knut





More information about the pmwiki-users mailing list