From c1b47dd23e4f92c9a320c79437f9aa73278c9118 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 24 Aug 2015 13:00:23 -0700 Subject: [PATCH] Fixed some doc errors in tryNormaliseRedirect() Change-Id: I8f9397d05de1c0bae33497d1f9e3146939599380 --- includes/MediaWiki.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index f488aa2485..d81d7eb7ab 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -283,9 +283,11 @@ class MediaWiki { * /w/index.php?title=Foo_Bar -> /wiki/Foo_Bar * - Don't redirect anything with query parameters other than 'title' or 'action=view'. * + * @param Title $title * @return bool True if a redirect was set. + * @throws HttpError */ - private function tryNormaliseRedirect( $title ) { + private function tryNormaliseRedirect( Title $title ) { $request = $this->context->getRequest(); $output = $this->context->getOutput(); -- 2.20.1