Merge "Fixed some doc errors in tryNormaliseRedirect()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 28 Aug 2015 09:39:33 +0000 (09:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 28 Aug 2015 09:39:33 +0000 (09:39 +0000)
includes/MediaWiki.php

index ee59263..fbacb25 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();