From: Happy-melon Date: Sat, 13 Mar 2010 19:07:25 +0000 (+0000) Subject: Follow-ups from r63682 CR suggestions. X-Git-Tag: 1.31.0-rc.0~37460 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=a63e45a5bd5431b73918b81fd1c49b08b4c44620;p=lhc%2Fweb%2Fwiklou.git Follow-ups from r63682 CR suggestions. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 870849d15a..702a9f5e01 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2017,12 +2017,15 @@ class OutputPage { * * @param $title Title to link * @param $query String: query string + * @param $text String text of the link (input is not escaped) */ - public function addReturnTo( $title, $query = array(), $text=null ) { + 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, $text, array(), $query ) ); + $link = wfMsgHtml( + 'returnto', + $wgUser->getSkin()->link( $title, $text, array(), $query ) + ); $this->addHTML( "

{$link}

\n" ); }