Couple of issues in r53270: use accessor method and keep the function signature bc
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 15 Jul 2009 06:43:42 +0000 (06:43 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 15 Jul 2009 06:43:42 +0000 (06:43 +0000)
includes/OutputPage.php
includes/SkinTemplate.php

index df9a4b7..644dec7 100644 (file)
@@ -1639,7 +1639,7 @@ class OutputPage {
         * @param Title $title Title to link
         * @param string $query Query string
         */
-       public function addReturnTo( $title, $query ) {
+       public function addReturnTo( $title, $query = array() ) {
                global $wgUser;
                $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullUrl() ) );
                $link = wfMsgHtml( 'returnto', $wgUser->getSkin()->link(
index f915bcb..cb970d9 100644 (file)
@@ -176,7 +176,7 @@ class SkinTemplate extends Skin {
                wfProfileIn( __METHOD__ . '-stuff' );
                $this->thispage = $this->mTitle->getPrefixedDBkey();
                $this->thisurl = $this->mTitle->getPrefixedURL();
-               $query = $wgRequest->data;
+               $query = $wgRequest->getValues();
                unset( $query['title'] );
                $this->thisquery = wfArrayToCGI( $query );
                $this->loggedin = $wgUser->isLoggedIn();