Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2018,11 +2018,11 @@ |
2019 | 2019 | * @param $title Title to link |
2020 | 2020 | * @param $query String: query string |
2021 | 2021 | */ |
2022 | | - public function addReturnTo( $title, $query = array() ) { |
| 2022 | + public function addReturnTo( $title, $query = array(), $text=null ) { |
2023 | 2023 | global $wgUser; |
2024 | 2024 | $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullUrl() ) ); |
2025 | 2025 | $link = wfMsgHtml( 'returnto', $wgUser->getSkin()->link( |
2026 | | - $title, null, array(), $query ) ); |
| 2026 | + $title, $text, array(), $query ) ); |
2027 | 2027 | $this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" ); |
2028 | 2028 | } |
2029 | 2029 | |