"Simetrical"
<Simetrical+wikilist(a)gmail.com>
wrote in message
news:7c2a12e20804221716xaa6f5cflf216ff28c6324015@mail.gmail.com...
On Tue, Apr 22, 2008 at 5:59 PM, Mark Clements
wrote:
And, of course, it doesn't help when
that's not the case, which is the
situation for us. For technical reasons, all extensions are outside
the MW source folder entirely.
Symlinks work perfectly in that case (as is true for my localhost, for
instance, since it's running a checked-out version of
mediawiki/trunk/). I agree it's not great practice, though: maybe you
could try to use the current working directory? That seems even less
reliable.
I imagine an 'updateExtension' script in the 'maintenance'
folder that
include()s the appropriate command line/site settings/etc. files then looks
for a script with the appropriate name (based on the extension name which is
supplied as first arg on command line - 'ExtName' in this example) in the
following places.
*/extensions/ExtName/maintenance.php
*/ExtName/maintenance.php
Where * means anywhere in the include path. If the file exists, run it with
the remaining arguments passed through, for which there should be a
standardised subset that most extensions use (e.g. 'install' and
'upgrade')
though extension-specific items are allowed. If no arg (or an unexpected
arg) is provided then the extension file is expected to print out the
details about available items (i.e. equivalent to 'help').
- Mark Clements (HappyDog)
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org