Check for namespace existence in Title::makeTitleSafe().
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 11 Apr 2012 12:37:27 +0000 (14:37 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 11 Apr 2012 12:37:27 +0000 (14:37 +0200)
commit9eb25dc032c7408c96af78253ac512fd3ceb2231
treec4efdfd543566c9159ac3dca606450b317bf6efc
parentedfb4c738cd60bc6f724aa92a15c8f48b722b015
Check for namespace existence in Title::makeTitleSafe().

Namespace existence has to be checked before calling Title::makeName() because otherwise it will fallback to a page with the same name, but in the main namespace which is not what we want here.

Change-Id: I8c087390044c54dd0502c1b8bb9321dfaec6b5f7
includes/Title.php