From 434db86d913bcac779a8eba5d06004044771c31b Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Tue, 7 Apr 2015 02:01:45 +0100 Subject: [PATCH] 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 --- includes/MediaWiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1