summaryrefslogtreecommitdiff
path: root/extensions/README
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/README')
-rw-r--r--extensions/README13
1 files changed, 13 insertions, 0 deletions
diff --git a/extensions/README b/extensions/README
index 85f4943b..0437af69 100644
--- a/extensions/README
+++ b/extensions/README
@@ -12,3 +12,16 @@ The extensions are available through svn at:
You can find documentation and additional extensions on MediaWiki website:
http://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! 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' );
+ if( $IP === false ) {
+ $IP = dirname( __FILE__ ) . '/../..';
+ }
+ require( "$IP/maintenance/Maintenance.php" ); // a MediaWiki core file