Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2017,12 +2017,15 @@ |
2018 | 2018 | * |
2019 | 2019 | * @param $title Title to link |
2020 | 2020 | * @param $query String: query string |
| 2021 | + * @param $text String text of the link (input is not escaped) |
2021 | 2022 | */ |
2022 | | - public function addReturnTo( $title, $query = array(), $text=null ) { |
| 2023 | + public function addReturnTo( $title, $query=array(), $text=null ) { |
2023 | 2024 | global $wgUser; |
2024 | 2025 | $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 | + ); |
2027 | 2030 | $this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" ); |
2028 | 2031 | } |
2029 | 2032 | |