X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=extensions%2FREADME;h=e8150623210d8aefb05b424c5adc57e54c69be49;hb=61b3f8ad584d74146ccc07cebd4f203cd3ddeec7;hp=22f47105133645e31106aecff9659fe803cd5ad9;hpb=4736034866f3c1cbda172943348fc396e9a54726;p=lhc%2Fweb%2Fwiklou.git diff --git a/extensions/README b/extensions/README index 22f4710513..e815062321 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 + require_once "$IP/maintenance/Maintenance.php"; // a MediaWiki core file