Merge "Remove PHP detection from entry points other than index.php"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 13 Nov 2015 01:01:00 +0000 (01:01 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 13 Nov 2015 01:01:00 +0000 (01:01 +0000)
api.php
load.php

diff --git a/api.php b/api.php
index af7c452..83c1373 100644 (file)
--- a/api.php
+++ b/api.php
@@ -35,11 +35,6 @@ use MediaWiki\Logger\LegacyLogger;
 // So extensions (and other code) can check whether they're running in API mode
 define( 'MW_API', true );
 
-// Bail on old versions of PHP, or if composer has not been run yet to install
-// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
-require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
-wfEntryPointCheck( 'api.php' );
-
 require __DIR__ . '/includes/WebStart.php';
 
 $starttime = microtime( true );
index e65b09e..43c2faf 100644 (file)
--- a/load.php
+++ b/load.php
 
 use MediaWiki\Logger\LoggerFactory;
 
-// Bail on old versions of PHP, or if composer has not been run yet to install
-// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
-require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
-wfEntryPointCheck( 'load.php' );
-
 require __DIR__ . '/includes/WebStart.php';