Last modified: 2006-06-22 10:36:21 UTC
The Style-directory is fixed in includes/User.php as $IP.'/skins'. This should
Same in includes/Skin.php:
$skinDir = dir($IP.'/skins');
$skinDir = dir($wgStyleDirectory);
Neither $wgStyleDirectory nor any other of those types of variables have a value
at the time that $IP is set. Closing not valid, as there's a reason $IP is like
$IP is set in LocalSettings.php, $wgStyleDirectory is set in LocalSettings.php
AND DefaultSettings.php, what’s the differance?
Also the chances in Skin.php and User.php work for me.
(Don't forget to change
global $IP, $wgRequest;
global $wgStyleDirectory, $wgRequest;
in function &getSkin())
They're set much later. $IP is a special case and is done like that *for a reason.*
I have changed and tested it on my testwiki and I works whitout warnings. So
it's possible to change!
(PS Use RESOLVE WONTFIX next time.)
Created attachment 1089 [details]
Fixed User.php and Skin.php (MediaWiki 1.5.2)
See attachment for fixed User.php and Skin.php (For MediaWiki 1.5.2)
User.php is fixed in version 1.198, Mon Dec 19 23:36:43 2005 UTC
Making a patch for Skin.php...
Created attachment 1307 [details]
Patch for Skin.php
Patch for Skin.php - tested on own wiki
*** Bug 5960 has been marked as a duplicate of this bug. ***
Fixed in SVN trunk, r14449.