From: Antoine Musso Date: Tue, 12 Oct 2010 18:20:48 +0000 (+0000) Subject: A note about symbolic link and dirname() / include() ... X-Git-Tag: 1.31.0-rc.0~34532 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=b83e46ab19835bc84ee3c8d8d62369164b78637d;p=lhc%2Fweb%2Fwiklou.git A note about symbolic link and dirname() / include() ... --- diff --git a/extensions/README b/extensions/README index 85f4943b5c..c8d4e90e5e 100644 --- a/extensions/README +++ b/extensions/README @@ -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