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:
parent
7e1a0a6142
commit
b1853bba02
1 changed files with 1 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue