Avoid unstubbing $wgLang in Title::getLocalURL
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 16 May 2016 16:46:58 +0000 (12:46 -0400)
committerAnomie <bjorsch@wikimedia.org>
Mon, 16 May 2016 16:57:41 +0000 (16:57 +0000)
commit67881de44e6728bde2911ea0b73957baf626c243
tree8d726da5fd7c3db7e0d61a1c12188951437b5740
parent1c76b75656ae0bf4d2a09661d798160e2074527e
Avoid unstubbing $wgLang in Title::getLocalURL

If $query doesn't match the regex, there's no point in unstubbing $wgLang if
that's what happens to be the page language. This also avoids it blowing up if
$wgLang isn't usable due to MW_NO_SESSION.

Bug: T135389
Change-Id: I9a6779c4cc887205215a815db3a765c35f060c42
includes/Title.php