Thank you very much.
Inserting "global $IP;" works perfectly.
(P.S. Sorry for confusing, I'm not using three dots. It was only for
shortening real path string.)
Date: Thu, 30 Sep 2010 01:46:30 +0200
From: Platonides < >
Subject: Re: [Mediawiki-l] Problem with custom skin path
Content-Type: text/plain; charset=ISO-8859-1
Daniel Steiner wrote:
While testing this, I got the a error like:
]: failed to
open stream: No such file or directory in
/usr/local/.../Common/skins/MonoBook.deps.php on line 12"
Are you using three dots?
Only two dots lead you to your parent.
This is because of SkinTemplate.php is relatively
MonoBook.deps.php as "require_once ( dirname ( dirname ( __FILE__ ) )
'includes/SkinTemplate.php' ", which
belongs to normal directory
The strange thing now is, changing the statement in MonoBook.deps.php
It seems, $IP isn't available at this point and the statement results
Try adding a global $IP; above that.