Follow-up I47412b67: pass an array of query parameters to Linker::link()
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 8 Aug 2012 08:42:17 +0000 (10:42 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 8 Aug 2012 08:42:17 +0000 (10:42 +0200)
Spotted by Daniel Werner in that change.

Change-Id: I8ded52b8285b2af0f69cc586abe532ea56cc18bb

includes/OutputPage.php

index 6c1ac4b..a9c7d14 100644 (file)
@@ -1725,7 +1725,7 @@ class OutputPage extends ContextSource {
        /**
         * Return a Vary: header on which to vary caches. Based on the keys of $mVaryHeader,
         * such as Accept-Encoding or Cookie
-        * 
+        *
         * @return String
         */
        public function getVaryHeader() {
@@ -2351,7 +2351,7 @@ $templates
         * Add a "return to" link pointing to a specified title
         *
         * @param $title Title to link
-        * @param $query String query string
+        * @param $query Array query string parameters
         * @param $text String text of the link (input is not escaped)
         */
        public function addReturnTo( $title, $query = array(), $text = null ) {
@@ -2391,7 +2391,7 @@ $templates
                        $titleObj = Title::newMainPage();
                }
 
-               $this->addReturnTo( $titleObj, $returntoquery );
+               $this->addReturnTo( $titleObj, wfCgiToArray( $returntoquery ) );
        }
 
        /**