Title::getTalkPage(): Restore behavior of interwiki-prefixed & fragment-only titles
authordaniel <dkinzler@wikimedia.org>
Thu, 29 Aug 2019 13:25:16 +0000 (15:25 +0200)
committerdaniel <dkinzler@wikimedia.org>
Wed, 4 Sep 2019 20:37:52 +0000 (22:37 +0200)
commit53ef1fa67bad8ffde58bc3c9c0b232863578ea55
tree0d6b3c5bb755780b2451a7416d4e89afe9065cc2
parenteb4ac89d6690ed4504206de5678a9a50e5edaadf
Title::getTalkPage(): Restore behavior of interwiki-prefixed & fragment-only titles

NamespaceInfo::getTalkPage will throw an exception for these.
With this patch, Title::getTalkPage() will be reverted to the old
behavior of returning an incorrect meaningless value. Logging has been
added to identify code paths that trigger this behavior.

This patch should be undone once all such code paths have been found and
fixed.

Bug: T227817
Change-Id: I4727c7bb54d6f712ddcab05ef278a08d728f5726
includes/Title.php
tests/phpunit/includes/TitleTest.php