Allow fragment-only TitleValues
authorAryeh Gregor <ayg@aryeh.name>
Mon, 15 Apr 2019 12:44:07 +0000 (15:44 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Mon, 15 Apr 2019 14:15:01 +0000 (17:15 +0300)
commit34582db81c9418a12721df58081c02bb05d2660a
tree2d48e0e4b0b01caed8786839bfe1d13b4169b24f
parent29bfd8b39b01bdd3232d5be16c71e6f2ead31fc3
Allow fragment-only TitleValues

This matches behavior of Title, and is meaningful for creating links.
However, in other contexts such a TitleValue doesn't make sense, so
perhaps we want to write special cases in linking code instead.

Change-Id: I812ad9090463766f38ef677de318c006912b4cca
includes/title/MediaWikiTitleCodec.php
includes/title/TitleValue.php
tests/phpunit/includes/title/TitleValueTest.php