Linker: Do not localize links to other wikis in comments
authorMatěj Suchánek <matejsuchanek97@gmail.com>
Thu, 29 Jun 2017 13:06:24 +0000 (15:06 +0200)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 6 Jul 2017 01:56:27 +0000 (18:56 -0700)
commit922b85bad0ecd4c7e88b29ff5599c14ec731278d
tree73e17def090a2276ae12386dbacda04406c20d33
parentffe76f81606b7e9411da2b17d7f506faccbe2517
Linker: Do not localize links to other wikis in comments

The title, although it refers to a foreign page, is considered local
due to Title::isExternal() being false, hence it's namespace prefix
is localized.

We need to use the canonical namespace name instead.

Bug: T169221
Change-Id: I5e5f7d873b9497ca6c8853e7d8170a4f4f07c051
includes/Linker.php
tests/phpunit/includes/LinkerTest.php