Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/205627

Change subject: Remove non-standard IP override
......................................................................

Remove non-standard IP override

Also reset $dir because it is almost certainly going to be
overriden by something else when including rest of MediaWiki.

Change-Id: I909a4a0403da166b8e77defa3bb9ca5489c3a70b
---
M tab2txt.php
M txt2cdb.php
2 files changed, 1 insertion(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Babel 
refs/changes/27/205627/1

diff --git a/tab2txt.php b/tab2txt.php
index 7af8bc0..e1266d1 100644
--- a/tab2txt.php
+++ b/tab2txt.php
@@ -8,9 +8,6 @@
 
 $dir = __DIR__;
 $IP = "$dir/../..";
-if ( file_exists( "$dir/../../CorePath.php" ) ) {
-       include "$dir/../../CorePath.php"; // Allow override
-}
 require_once "$IP/maintenance/commandLine.inc";
 
 $fr = fopen( 'php://stdin', 'r' );
diff --git a/txt2cdb.php b/txt2cdb.php
index 3c346b7..b51a6ea 100644
--- a/txt2cdb.php
+++ b/txt2cdb.php
@@ -7,15 +7,13 @@
 
 $dir = __DIR__;
 $IP = "$dir/../..";
-if ( file_exists( "$dir/../../CorePath.php" ) ) {
-       include "$dir/../../CorePath.php"; // Allow override
-}
 
 use Cdb\Exception as CdbException;
 use Cdb\Writer as CdbWriter;
 
 require_once "$IP/maintenance/commandLine.inc";
 
+$dir = __DIR__;
 $names = "$dir/names.cdb";
 $codes = "$dir/codes.cdb";
 $fr = fopen( "$dir/codes.txt", 'r' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I909a4a0403da166b8e77defa3bb9ca5489c3a70b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Babel
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to