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)
committerLegoktm <legoktm@member.fsf.org>
Thu, 7 Jun 2018 17:39:37 +0000 (17:39 +0000)
commit49aa4d3f9c48bced2e7293925786479a99b56b33
tree232131e97b4e453faac4d41bd69e469e924bc2a7
parent30d58769ac54f8ef3f0c54558f43b9a73a68b37e
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
(cherry picked from commit a498abf272c7aff376c5225a6f593349e3cc3eaa)
autoload.php
includes/installer/Installer.php
includes/interwiki/NullInterwikiLookup.php [new file with mode: 0644]