From: Happy-melon Date: Sat, 13 Mar 2010 16:07:38 +0000 (+0000) Subject: Allow OutputPage::addReturnTo() to set the text of the link. X-Git-Tag: 1.31.0-rc.0~37469 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=33c3d5450a3e700929ea9357c76aa3044778bff4;p=lhc%2Fweb%2Fwiklou.git Allow OutputPage::addReturnTo() to set the text of the link. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 24e5c1caac..870849d15a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2018,11 +2018,11 @@ class OutputPage { * @param $title Title to link * @param $query String: query string */ - public function addReturnTo( $title, $query = array() ) { + public function addReturnTo( $title, $query = array(), $text=null ) { global $wgUser; $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullUrl() ) ); $link = wfMsgHtml( 'returnto', $wgUser->getSkin()->link( - $title, null, array(), $query ) ); + $title, $text, array(), $query ) ); $this->addHTML( "

{$link}

\n" ); }