A note about symbolic link and dirname() / include() ...
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 12 Oct 2010 18:20:48 +0000 (18:20 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 12 Oct 2010 18:20:48 +0000 (18:20 +0000)
extensions/README

index 85f4943..c8d4e90 100644 (file)
@@ -12,3 +12,11 @@ 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! If you need to include a
+file from mediawiki/, you will want to set and use MW_INSTALL_PATH env.
+
+ $IP = getenv( 'MW_INSTALL_PATH' );  // points to mediawiki/
+ require( "$IP/maintenance/Maintenance.php" ); // a MediaWiki file