aboutsummaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorHoo man <hoo@online.de>2012-08-27 23:58:28 +0200
committerHoo man <hoo@online.de>2012-08-27 23:58:28 +0200
commit8ffbb077b3f4f2fa3a4a5230df65e5c5ed8f2d6d (patch)
treedcde0b1f84bbbbb13c4942e413da8a0f5c4d1919 /extensions
parentdb705be9f605756ee85a67dc295cacf1f5b5601d (diff)
downloadmediawikicore-8ffbb077b3f4f2fa3a4a5230df65e5c5ed8f2d6d.tar.gz
mediawikicore-8ffbb077b3f4f2fa3a4a5230df65e5c5ed8f2d6d.zip
Use __DIR__ instead of dirname( __FILE__ )
Removed left over uses of dirname( __FILE__ ) to __DIR__, even in comments. Running the PHP version test in maintenance/Maintenance.php earlier, so that we no longer have to stay PHP < 5.3 compatible in there. Change-Id: I5a00bd5c6af44b7f826c4e5576a7b3de7b5026d8
Diffstat (limited to 'extensions')
-rw-r--r--extensions/README4
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