installer: Fix display of UPGRADE by disabling InterwikiLookup
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 7 Jun 2018 08:01:13 +0000 (01:01 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 7 Jun 2018 08:01:13 +0000 (01:01 -0700)
commita498abf272c7aff376c5225a6f593349e3cc3eaa
tree1555b1cee10c9d523ef01c0bad53ce8bed84a4c8
parent03720d7d67d3fd8c420d2db2fa8b7d459f273a72
installer: Fix display of UPGRADE by disabling InterwikiLookup

Since 129067c907ea65f62, parsing section titles has looked up interwiki
prefixes with InterwikiLookup. In the web upgrader, this triggers
database access, and since that service is disabled, it throws
exceptions, causing parsing to fail.

Work around that by using a dummy InterwikiLookup service that knows
about no interwiki prefixes. Maybe one could be written to just read
from the stock `interwiki.list`, but that's a project for another time.

Bug: T196607
Change-Id: I13485a9af79297b552a1128240cb8597c2ef83d8
autoload.php
includes/installer/Installer.php
includes/interwiki/NullInterwikiLookup.php [new file with mode: 0644]