I'm on shared server with no console access and it's not possible trough the web-based file manager.
But anyway, why is $IP not working/available in MonoBook.deps.php Thanks for help
Daniel Steiner
----------------------------------------------------------------------
Date: Wed, 29 Sep 2010 00:04:04 -0700 From: Trevor Parscal tparscal@wikimedia.org Subject: Re: [Mediawiki-l] Problem with custom skin path To: mediawiki-l@lists.wikimedia.org Message-ID: 4CA2E4E4.1090604@wikimedia.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Why not just use symlinks?
- Trevor
On 9/28/10 11:07 PM, Daniel Steiner wrote:
Hi
I'd like to use a common skin path for two different wikis to share
file
resources.
Directory structure is as follows:
/DOCUMENT_ROOT/wiki1
/DOCUMENT_ROOT/wiki2
/DOCUMENT_ROOT/Common/skins
For this, I added to each LocalSettings file:
$wgStyleDirectory ="$IP/../Common/skins"
$wgStylePath ="/Common/skins"
While testing this, I got the a error like:
"Warning: require_once(/usr/local/...
/Common/includes/SkinTemplate.php)
[function.require-once
<http://foundation-register.org/stf1test/index.php/function.require-once
]: failed to open stream: No such file or directory in
/usr/local/.../Common/skins/MonoBook.deps.php on line 12"
This is because of SkinTemplate.php is relatively referenced in MonoBook.deps.php as "require_once ( dirname ( dirname ( __FILE__ ) )
.
'includes/SkinTemplate.php' ", which belongs to normal directory structure.
The strange thing now is, changing the statement in MonoBook.deps.php
to
"$IP/includes/SkinTemplate.php" didn't work.
It seems, $IP isn't available at this point and the statement results
in
"require_once (/includes/SkinTemplate.php)" only.
Could somebody give me a hint what I'm doing wrong, please?
Or is there a better solution to that plan?
Thanks
Daniel Steiner
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org