ImageListPager: Fix improper use of Title::newFromText().
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 5 Apr 2016 19:49:55 +0000 (12:49 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 5 Apr 2016 19:49:55 +0000 (12:49 -0700)
commitaf5d418e822e7198e0d393826e9e722b613ca21a
treec5c40bd97613afe7fec436d6244b81c8bac5b39e
parent674e8388cba9305223ef52f733e726c71c755778
ImageListPager: Fix improper use of Title::newFromText().

The $defaultNamespace parameter to Title::newFromText() only applies if
a namespace prefix isn't included in the text. So if a username was
"Help:FooBar", the NS_USER prefix would not be applied.

Instead use Title::makeTitleSafe( NS_USER, ... ); which was designed for
this specific purpose.

Change-Id: Iafce73d352887947e61ae7c906ddf965e04fbf6f
includes/specials/pagers/ImageListPager.php