[pmwiki-users] More info Re: $ScriptURL not being found/honored?
Dominique Faure
dominique.faure at gmail.com
Sun Oct 15 05:06:19 CDT 2006
On 10/15/06, Henrik <henrik.bechmann at sympatico.ca> wrote:
> Maybe because it's case sensitive.
>
> $ScriptURL is not the same as $ScriptUrl...
>
> Joshua J. Kugler wrote:
> > OK, more info on the glitch I'm encountering. This is really strange, even
> > for someone not fully acquainted with PHP.
> >
> > In my local/config.php, I have:
> >
> > $ScriptUrl = 'http://my.host.com';
> > <snip>
> > $PageLogoFmt = "<a href='$ScriptURL'>Title</a><br/><span
> > id='tag'>$LogoTagline</span>";
> >
> > So, $ScriptURL is defined. But when that template is rendered, the a href is
> > still ''. And yes, I've message with the title of this version, so I know it
> > is using the $PageLogoFmt in config.php and not in skin.php.
> >
> > I'm at a loss. What incredibly easy thing am I missing?
> >
> > j
> >
> >
>
You may also take account that the skin (php) scripts are
"included_once" from within the "SetSkin()" function call [1], hence
all global variables must be explicitely declared before being
accessed to. Have a try declaring:
global $ScriptUrl;
$PageLogoFmt = ...
Dom
[1] scripts/skins.php
More information about the pmwiki-users
mailing list