From 33c3d5450a3e700929ea9357c76aa3044778bff4 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 13 Mar 2010 16:07:38 +0000 Subject: [PATCH] Allow OutputPage::addReturnTo() to set the text of the link. --- includes/OutputPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); } -- 2.20.1