[pmwiki-devel] Double click for admins only...

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 20 07:33:51 CDT 2007


On Tue, Mar 20, 2007 at 10:23:03AM +0100, christian.ridderstrom at gmail.com wrote:
> On Tue, 20 Mar 2007, Hans wrote:
> >Tuesday, March 20, 2007, 8:56:39 AM, The wrote:
> >>However I wanted to put this in my skin.php file so it would be
> >>available as a part of the skin, across my various fields.  While it
> >>works in config.php, it does not work in skin.php.  Any ideas why?
> >
> >did you declare $BodyAttr global?
> 
> What do you mean with global?  (I thought all variables defined outside a 
> function were automatically global)
> 
> Hm... is the skin a function?

Any skin.php file is included from within the SetSkin() function
in scripts/skins.php, so variables in skin.php are assumed to be
local to SetSkin() unless explicitly declared global.  (That's
just the way that PHP works.)

Pm




More information about the pmwiki-devel mailing list