Fixed some doc errors in tryNormaliseRedirect()
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 24 Aug 2015 20:00:23 +0000 (13:00 -0700)
committerGilles Dubuc <gdubuc@wikimedia.org>
Fri, 28 Aug 2015 08:24:17 +0000 (10:24 +0200)
Change-Id: I8f9397d05de1c0bae33497d1f9e3146939599380

includes/MediaWiki.php

index f488aa2..d81d7eb 100644 (file)
@@ -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();