Do not pass null to Title::newFromText in Special:MyLanguage

This currently breaks phpunit integration test in Translate.

Change-Id: Ibdc04e9e20c0264076d7a8766ac9a4826033371e
This commit is contained in:
Niklas Laxström 2015-04-07 12:45:47 +02:00 committed by Nikerabbit
parent 7e1a0a6142
commit b1853bba02

View file

@ -63,6 +63,7 @@ class SpecialMyLanguage extends RedirectSpecialArticle {
* @return Title|null
*/
public function findTitle( $par ) {
$par = (string)$par;
// base = title without language code suffix
// provided = the title as it was given
$base = $provided = Title::newFromText( $par );