X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=extensions%2FREADME;h=22f47105133645e31106aecff9659fe803cd5ad9;hb=a2f9b7e35d8c3238aade1687c150bf1f719eaff6;hp=c8d4e90e5e6f13efb50d9c1eb4f648e356aadb22;hpb=b83e46ab19835bc84ee3c8d8d62369164b78637d;p=lhc%2Fweb%2Fwiklou.git diff --git a/extensions/README b/extensions/README index c8d4e90e5e..22f4710513 100644 --- a/extensions/README +++ b/extensions/README @@ -7,16 +7,24 @@ directory and make a symbolic link: mediawiki/extensions$ ln -s ../../extensions-trunk/FooBarExt -The extensions are available through svn at: - http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ +The extensions are available through Git: + https://gerrit.wikimedia.org/r/#/admin/projects/ + +or Subversion: + https://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ You can find documentation and additional extensions on MediaWiki website: - http://www.mediawiki.org/wiki/Category:Extensions + https://www.mediawiki.org/wiki/Category:Extensions Please note that under POSIX systems (Linux...), parent of a symbolic path -refers to the link source, NOT to the target! If you need to include a -file from mediawiki/, you will want to set and use MW_INSTALL_PATH env. +refers to the link source, NOT to the target! You should check the env +variable MW_INSTALL_PATH in case the extension is not in the default location. + +The following code snippet let you override the default path: - $IP = getenv( 'MW_INSTALL_PATH' ); // points to mediawiki/ - require( "$IP/maintenance/Maintenance.php" ); // a MediaWiki file + $IP = getenv( 'MW_INSTALL_PATH' ); + if( $IP === false ) { + $IP = dirname( __FILE__ ) . '/../..'; + } + require_once( "$IP/maintenance/Maintenance.php" ); // a MediaWiki core file