From: Alex Monk Date: Tue, 7 Apr 2015 01:01:45 +0000 (+0100) Subject: Fix param order of a Title::newFromText call in MediaWiki X-Git-Tag: 1.31.0-rc.0~11824^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=434db86d913bcac779a8eba5d06004044771c31b;p=lhc%2Fweb%2Fwiklou.git Fix param order of a Title::newFromText call in MediaWiki Otherwise it throws an exception on the latest master (I2b36b7a3) I'm kind of surprised this didn't break when it was introduced in I60f44a10 Change-Id: I62f12aa9267d0812c3689064f512298187ac3c84 --- diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 68d03c8a56..86531bb9e5 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -529,7 +529,7 @@ class MediaWiki { wfDebugLog( 'RedirectedPosts', "Redirected from HTTP to HTTPS: $oldUrl" ); } // Setup dummy Title, otherwise OutputPage::redirect will fail - $title = Title::newFromText( NS_MAIN, 'REDIR' ); + $title = Title::newFromText( 'REDIR', NS_MAIN ); $this->context->setTitle( $title ); $output = $this->context->getOutput(); // Since we only do this redir to change proto, always send a vary header