Siebrand has uploaded a new change for review.

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

Change subject: Remove echo when MEDIAWIKI is not defined
......................................................................

Remove echo when MEDIAWIKI is not defined

This breaks tests like in
https://integration.wikimedia.org/ci/job/php-composer-test/16960/console

Change-Id: If01cb1106e3038c5f65d3fec4d4733c943a68a37
---
M UniversalLanguageSelector.php
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/70/243170/1

diff --git a/UniversalLanguageSelector.php b/UniversalLanguageSelector.php
index 5a99f50..a6fa94f 100644
--- a/UniversalLanguageSelector.php
+++ b/UniversalLanguageSelector.php
@@ -30,10 +30,7 @@
        return;
 }
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       echo "This file is an extension to the MediaWiki software and cannot be 
used standalone.\n";
-       die( -1 );
-}
+if ( !defined( 'MEDIAWIKI' ) ) die();
 /**
  * Version number used in extension credits and in other placed where needed.
  */

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If01cb1106e3038c5f65d3fec4d4733c943a68a37
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@kitano.nl>

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

Reply via email to