From: Niklas Laxström Date: Tue, 7 Apr 2015 10:45:47 +0000 (+0200) Subject: Do not pass null to Title::newFromText in Special:MyLanguage X-Git-Tag: 1.31.0-rc.0~11770^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=b1853bba026d3358766e2182a6360a1ffed0a98a;p=lhc%2Fweb%2Fwiklou.git Do not pass null to Title::newFromText in Special:MyLanguage This currently breaks phpunit integration test in Translate. Change-Id: Ibdc04e9e20c0264076d7a8766ac9a4826033371e --- diff --git a/includes/specials/SpecialMyLanguage.php b/includes/specials/SpecialMyLanguage.php index 6cea15818c..fce1cdcb00 100644 --- a/includes/specials/SpecialMyLanguage.php +++ b/includes/specials/SpecialMyLanguage.php @@ -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 );