Manual talk:$wgStylePath

No Default Value?
When I set $wgLogo = "$wgStylePath/common/images/logo.png"; in LocalSettings.php, nothing shows up. If I set it to $wgLogo = "$wgScriptPath/skins/common/images/logo.png";, however, it works just fine. So I conclude that $wgStylePath is not set to $wgScriptPath/skins by default!?

$wgStylePath  = false; /// defaults to "{$wgScriptPath}/skins" So it seems like it does... blind leading the blind here, I'm having similar problems... I've started a topic, possibly related to this here: http://www.mediawiki.org/wiki/Project:Support_desk#.24wgLogo_Missing_is_from_my_LocalSettings.php.3F
 * Well, when I grep DefaultSettings.php, (> cat includes/DefaultSettings.php | grep 'wgScriptPath') I find

-Tzf 00:25, 24 October 2007 (UTC)

Yeah, I get the same thing. this is in mw 1.15.0.

It's almost like LocalSettings.php expects DefaultSettings.php to set it, and DS  expects LS to set it. ??!?!?! Everybody sets it to false, saying well, the default value is wgScriptPath/skins. but nobody sets it that way. Or else it gets set right downstream somewhere. I finally used $wgLogo = "$wgScriptPath/skins/common/images/CrossWiseLogo.png"; like that, seems to work ok. OsamaBinLogin 20:55, 13 July 2009 (UTC)

This is fucked up
I agree that this is broken somehow, and as a consequence all documentation that refers to this variable is broken, too - namely $wgLogo.

I'm using MediaWiki 1.15.1 and it was no fun at all to find out how to point to a different image for the logo. I ended up explicitly redefining this variable in LocalSettings.php right after the line

require_once( "$IP/includes/DefaultSettings.php" );

to what this article documents as the default value

$wgStylePath  = "{$wgScriptPath}/skins";
 * 1) I should not be doing this

Then I could happily define

$wgLogo = "{$wgStylePath}/common/images/mylogo.png";

Please fix as a matter of urgency. Thanks. 122.26.138.182 03:06, 17 October 2009 (UTC)