Merge "Do not pass null to Title::newFromText in Special:MyLanguage"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 9 Apr 2015 00:31:23 +0000 (00:31 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 9 Apr 2015 00:31:23 +0000 (00:31 +0000)
includes/specials/SpecialMyLanguage.php

index 6cea158..fce1cdc 100644 (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 );