On 8/12/09 6:43 PM, Aryeh Gregor wrote:
> On Wed, Aug 12, 2009 at 5:03 PM, Brion Vibber<br...@wikimedia.org>  wrote:
>> Your setup is incorrect: the extensions folder *always* goes inside the
>> MediaWiki root dir. Always.
>
> I don't do this on my development wiki.  I use a checkout of trunk, so
> extensions/ is inside phase3/../.  Are there any significant problems
> with us supporting extensions/ being in an arbitrary location,

Yes, it's a pain in the ass. ;)

Note also that many extensions have user interface components including 
JavaScript, CSS, and image files -- we need a predictable path to reach 
them, and that's the extensions folder.

> as long
> as phase3/extensions/ reliably points to it both on the web and
> filesystem level?  Is there really no other reliable way to do
> standalone PHP scripts in extensions than require_once
> "../../LocalSettings.php"?

Standalone scripts should be loading up includes/WebStart.php or 
maintenance/commandLine.inc and not attempting to find LocalSettings.php 
themselves.

In any case they need to be able to find and reach that setup info, 
which is what a stable directory tree provides.

-- brion

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to