From b83e46ab19835bc84ee3c8d8d62369164b78637d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 12 Oct 2010 18:20:48 +0000 Subject: [PATCH] A note about symbolic link and dirname() / include() ... --- extensions/README | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1