Correctly handle incorrect namespace in cleanupTitles.php
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 12 Aug 2014 18:46:31 +0000 (20:46 +0200)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 12 Aug 2014 18:46:31 +0000 (20:46 +0200)
commitbb985c782704f25f4f9adb61b491e086e90c4cfe
treeb30b4a6e0b78047d6a805d62189d9c12b0befd69
parent93ddbbd99873b30120ae95e9546ff8f3845f3e1a
Correctly handle incorrect namespace in cleanupTitles.php

If the namespace is not valid; Title::makeTitleSafe() will
return null, thus producing a fatal error. Work arround this
by setting the namespace to 0 in that case.

Bug: 68501
Change-Id: I0c22f9468ff2bf11d2bf4a9265fa454ece2c0fa3
maintenance/cleanupTitles.php