* @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(
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();