diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/README | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/README b/extensions/README index 22f471051336..e81028628a31 100644 --- a/extensions/README +++ b/extensions/README @@ -21,10 +21,10 @@ 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: +The following code snippet lets you override the default path: $IP = getenv( 'MW_INSTALL_PATH' ); if( $IP === false ) { - $IP = dirname( __FILE__ ) . '/../..'; + $IP = __DIR__ . '/../..'; } require_once( "$IP/maintenance/Maintenance.php" ); // a MediaWiki core file |