Check for dependencies in entry point and Maintenance.php
authoraude <aude.wiki@gmail.com>
Sat, 18 Apr 2015 09:37:10 +0000 (05:37 -0400)
committerBryanDavis <bdavis@wikimedia.org>
Sat, 23 May 2015 15:05:11 +0000 (15:05 +0000)
commit9880d5b60b6502453c04c7fa69bdc06a5ebc1425
tree7cf0c78985e454286391c80b5ff35cc27c0ea36a
parentfd62703d505e3e233fb7842d7349a4e9302bb5f4
Check for dependencies in entry point and Maintenance.php

This way, if someone tries to install MediaWiki via
either web installer or install.php maintenance script,
after obtaining from git, they get some useful information
on what to do.

Put the checks alongside the php version check, as
stuff installed via composer (mustache / lightncandy)
is used for NoLocalSettings.php and install.php
attempts to use logging stuff.

Also tried to make PHPVersionError look slightly nicer,
with some <h2> elements and more padding for the <p>
elements.

and centralized this code in one place, as much as possible,
for improved ease of maintenance.

Bug: T90438
Bug: T88951
Change-Id: Iae4eb42c4266dbe9213c5de8a96fccfbeaa9acb0
api.php
includes/PHPVersionCheck.php [new file with mode: 0644]
includes/PHPVersionError.php
index.php
load.php
maintenance/Maintenance.php
maintenance/update.php
mw-config/index.php