r63702 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63701‎ | r63702 | r63703 >
Date:19:07, 13 March 2010
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-ups from r63682 CR suggestions.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -2017,12 +2017,15 @@
20182018 *
20192019 * @param $title Title to link
20202020 * @param $query String: query string
 2021+ * @param $text String text of the link (input is not escaped)
20212022 */
2022 - public function addReturnTo( $title, $query = array(), $text=null ) {
 2023+ public function addReturnTo( $title, $query=array(), $text=null ) {
20232024 global $wgUser;
20242025 $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullUrl() ) );
2025 - $link = wfMsgHtml( 'returnto', $wgUser->getSkin()->link(
2026 - $title, $text, array(), $query ) );
 2026+ $link = wfMsgHtml(
 2027+ 'returnto',
 2028+ $wgUser->getSkin()->link( $title, $text, array(), $query )
 2029+ );
20272030 $this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" );
20282031 }
20292032

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63682Allow OutputPage::addReturnTo() to set the text of the link.happy-melon16:07, 13 March 2010

Status & tagging log