dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436cf35
)
Allow OutputPage::addReturnTo() to set the text of the link.
author
Happy-melon
<happy-melon@users.mediawiki.org>
Sat, 13 Mar 2010 16:07:38 +0000
(16:07 +0000)
committer
Happy-melon
<happy-melon@users.mediawiki.org>
Sat, 13 Mar 2010 16:07:38 +0000
(16:07 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
24e5c1c
..
870849d
100644
(file)
--- 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( "<p id=\"mw-returnto\">{$link}</p>\n" );
}