Fix Title::getFragmentForURL for bad interwiki prefix.
authordaniel <dkinzler@wikimedia.org>
Wed, 23 Jan 2019 10:17:21 +0000 (11:17 +0100)
committerdaniel <dkinzler@wikimedia.org>
Wed, 23 Jan 2019 10:17:21 +0000 (11:17 +0100)
commit337311662d344c90590ca5cee34b8a87da933430
tree693482764de31d221a6514a0e0358b4cfda179c3
parentc7d0fa0ee999fb26823c2873f56c69a867fe9d1b
Fix Title::getFragmentForURL for bad interwiki prefix.

Calling Title::getLinkURL or any other method that relies on
getFragmentForURL on a title with an unknown interwiki prefix
was triggering a fatal error. With this patch, that situation is
handled more gracefully.

Bug: T204800
Change-Id: I665cd5e983a80c15c68c89541d9c856082c460bb
includes/Title.php
tests/phpunit/includes/TitleMethodsTest.php