TitleFormatter: Match Title behavior for non-existent namespaces
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 12 May 2016 18:25:51 +0000 (11:25 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 12 May 2016 18:36:30 +0000 (11:36 -0700)
commit147ec4cad8b591831eec2c84a73f60e66abf0847
tree4465914f85524f932036e9cc5e1c7275ff5274d7
parentf3d0fa6b79d82a3d0e05c784273a5200244684db
TitleFormatter: Match Title behavior for non-existent namespaces

In TitleFormatter::getPrefixedDBkey(), match the
Title::getPrefixedDBkey() behavior for non-existent namespaces by using
an empty string for the namespace and including a leading colon.

Change-Id: I195c36df69963c7409711dd97bece078f61faf77
includes/title/MediaWikiTitleCodec.php
tests/phpunit/includes/title/MediaWikiTitleCodecTest.php