From a63e45a5bd5431b73918b81fd1c49b08b4c44620 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 13 Mar 2010 19:07:25 +0000 Subject: [PATCH] Follow-ups from r63682 CR suggestions. --- includes/OutputPage.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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" ); } -- 2.20.1