Remove PHP detection from entry points other than index.php
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 12 Nov 2015 22:36:50 +0000 (22:36 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 12 Nov 2015 22:36:50 +0000 (22:36 +0000)
commit3df53167a2e65688b8d7adb538745db636208d74
treecdfe11d8ad1e1e90ba667628c3c02d783844216e
parent812c5ca2c410a3c475ae835efc460b60e871f763
Remove PHP detection from entry points other than index.php

The following entry points already didn't have it:

* opensearch.php
* thumb.php
* thumb_handlers.php

Now removed from api.php and load.php as well. The check was broken
because these entry points use the 'use' keyword for PHP namespaces,
which results in a syntax error on PHP < 5.3.

The check remains in index.php, mw-config/index.php, and
Maintenance (for e.g. install.php).

Bug: T112942
Change-Id: I9026d69ddfb3e02612256b4a9df525c432bb33c6
api.php
load.php