From: This, that and the other Date: Mon, 26 Dec 2016 01:58:16 +0000 (+1100) Subject: Handle missing namespace prefix in XML dumps more gracefully X-Git-Tag: 1.31.0-rc.0~3843^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=ef8bc825c6614a1687c7593d4beb0ebe24a1ada4;hp=ef8bc825c6614a1687c7593d4beb0ebe24a1ada4 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 ... PageTitle 1234 ... This caused the ForeignTitle code to raise an undefined offset error, because it assumed that the 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 ---