wiki.techinc.nl/tests/phpunit/includes/title
This, that and the other ef8bc825c6 Handle missing namespace prefix in XML dumps more gracefully
If an XML dump of a wiki is exported using dumpBackup.php, and there are
pages in a namespace that is not registered (perhaps because of a missing
extension), they will appear in the dump in the form

<page> ... <title>PageTitle</title> <ns>1234</ns> ... </page>

This caused the ForeignTitle code to raise an undefined offset error,
because it assumed that the <title> element was of the form
"Namespace:PageTitle" when <ns> was nonzero. This assumption is not valid.

Now, the importation of such dumps will no longer throw errors and the
pages will be correctly imported, although possibly to unexpected
locations.

Bug: T114115
Change-Id: I0271435dc208e7ea118339584f8a0e359c96113a
2017-01-01 09:11:45 +00:00
..
ForeignTitleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MediaWikiTitleCodecTest.php Use more short array syntax in comments (/tests/) 2016-07-10 17:23:29 +02:00
NaiveForeignTitleFactoryTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
NaiveImportTitleFactoryTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
NamespaceAwareForeignTitleFactoryTest.php Handle missing namespace prefix in XML dumps more gracefully 2017-01-01 09:11:45 +00:00
NamespaceImportTitleFactoryTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
SubpageImportTitleFactoryTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TitleValueTest.php Add LinkTarget::inNamespace() helper function 2016-05-12 08:28:26 +00:00