Hoo man has submitted this change and it was merged.

Change subject: Replace dirname( __FILE__ ) with __DIR__
......................................................................


Replace dirname( __FILE__ ) with __DIR__

Change-Id: I2a8b7300cef47d5dde473947946f4028bdab36bc
---
M cleanupArchiveUserText.php
M renameUserCleanup.php
2 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Hoo man: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/cleanupArchiveUserText.php b/cleanupArchiveUserText.php
index ff16bf6..8599f3c 100644
--- a/cleanupArchiveUserText.php
+++ b/cleanupArchiveUserText.php
@@ -2,7 +2,7 @@
 
 $IP = getenv( 'MW_INSTALL_PATH' );
 if ( $IP === false ) {
-       $IP = dirname( __FILE__ ) . '/../..';
+       $IP = __DIR__ . '/../..';
 }
 
 require_once( "$IP/maintenance/Maintenance.php" );
@@ -56,4 +56,4 @@
 }
 
 $maintClass = "CleanupArchiveUserText";
-require_once( RUN_MAINTENANCE_IF_MAIN );
\ No newline at end of file
+require_once( RUN_MAINTENANCE_IF_MAIN );
diff --git a/renameUserCleanup.php b/renameUserCleanup.php
index 374cb89..25c4a1f 100644
--- a/renameUserCleanup.php
+++ b/renameUserCleanup.php
@@ -25,7 +25,7 @@
 
 $IP = getenv( 'MW_INSTALL_PATH' );
 if ( $IP === false ) {
-       $IP = dirname( __FILE__ ) . '/../..';
+       $IP = __DIR__ . '/../..';
 }
 require_once( "$IP/maintenance/Maintenance.php" );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/55861
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2a8b7300cef47d5dde473947946f4028bdab36bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Renameuser
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to