Fix two bugs in installer session error display
authorTim Starling <tstarling@wikimedia.org>
Mon, 3 Apr 2017 03:55:48 +0000 (13:55 +1000)
committerTim Starling <tstarling@wikimedia.org>
Mon, 3 Apr 2017 03:55:48 +0000 (13:55 +1000)
commit13c311bb0c12cff86f3b2cc6ffc47ff9571d31ee
tree10147a504954a6819f5a8d72f1881cee7330c48e
parent4aebee77c4c13c6146880722ccf1ebe8aa95ec37
Fix two bugs in installer session error display

If Installer::startSession() returns false, then showError() is called
before setParserLanguage(), which causes DB access via
Title::getContentModel(). The code which was meant to handle DB access
from the parser did not do so, since the exception class which is thrown
on attempted DB access has changed.

Change-Id: I1478ec06a441851c5336bdde15734642615d45e9
includes/installer/Installer.php