3 * Implements Special:Recentchanges
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
21 * @ingroup SpecialPage
25 * A special page that lists last changes made to the wiki
27 * @ingroup SpecialPage
29 class SpecialRecentChanges
extends IncludableSpecialPage
{
30 var $rcOptions, $rcSubpage;
32 public function __construct( $name = 'Recentchanges' ) {
33 parent
::__construct( $name );
37 * Get a FormOptions object containing the default options
41 public function getDefaultOptions() {
43 $opts = new FormOptions();
45 $opts->add( 'days', (int)$wgUser->getOption( 'rcdays' ) );
46 $opts->add( 'limit', (int)$wgUser->getOption( 'rclimit' ) );
47 $opts->add( 'from', '' );
49 $opts->add( 'hideminor', $wgUser->getBoolOption( 'hideminor' ) );
50 $opts->add( 'hidebots', true );
51 $opts->add( 'hideanons', false );
52 $opts->add( 'hideliu', false );
53 $opts->add( 'hidepatrolled', $wgUser->getBoolOption( 'hidepatrolled' ) );
54 $opts->add( 'hidemyself', false );
56 $opts->add( 'namespace', '', FormOptions
::INTNULL
);
57 $opts->add( 'invert', false );
59 $opts->add( 'categories', '' );
60 $opts->add( 'categories_any', false );
61 $opts->add( 'tagfilter', '' );
66 * Create a FormOptions object with options as specified by the user
70 public function setup( $parameters ) {
73 $opts = $this->getDefaultOptions();
74 $opts->fetchValuesFromRequest( $wgRequest );
76 // Give precedence to subpage syntax
77 if( $parameters !== null ) {
78 $this->parseParameters( $parameters, $opts );
81 $opts->validateIntBounds( 'limit', 0, 5000 );
86 * Create a FormOptions object specific for feed requests and return it
90 public function feedSetup() {
91 global $wgFeedLimit, $wgRequest;
92 $opts = $this->getDefaultOptions();
93 # Feed is cached on limit,hideminor,namespace; other params would randomly not work
94 $opts->fetchValuesFromRequest( $wgRequest, array( 'limit', 'hideminor', 'namespace' ) );
95 $opts->validateIntBounds( 'limit', 0, $wgFeedLimit );
100 * Get the current FormOptions for this request
102 public function getOptions() {
103 if ( $this->rcOptions
=== null ) {
105 $feedFormat = $wgRequest->getVal( 'feed' );
106 $this->rcOptions
= $feedFormat ?
$this->feedSetup() : $this->setup( $this->rcSubpage
);
108 return $this->rcOptions
;
113 * Main execution point
115 * @param $subpage String
117 public function execute( $subpage ) {
118 global $wgRequest, $wgOut;
119 $this->rcSubpage
= $subpage;
120 $feedFormat = $wgRequest->getVal( 'feed' );
122 # 10 seconds server-side caching max
123 $wgOut->setSquidMaxage( 10 );
124 # Check if the client has a cached version
125 $lastmod = $this->checkLastModified( $feedFormat );
126 if( $lastmod === false ) {
130 $opts = $this->getOptions();
132 $this->outputHeader();
134 // Fetch results, prepare a batch link existence check query
135 $conds = $this->buildMainQueryConds( $opts );
136 $rows = $this->doMainQuery( $conds, $opts );
137 if( $rows === false ){
138 if( !$this->including() ) {
139 $this->doHeader( $opts );
145 $batch = new LinkBatch
;
146 foreach( $rows as $row ) {
147 $batch->add( NS_USER
, $row->rc_user_text
);
148 $batch->add( NS_USER_TALK
, $row->rc_user_text
);
149 $batch->add( $row->rc_namespace
, $row->rc_title
);
154 list( $changesFeed, $formatter ) = $this->getFeedObject( $feedFormat );
155 $changesFeed->execute( $formatter, $rows, $lastmod, $opts );
157 $this->webOutput( $rows, $opts );
164 * Return an array with a ChangesFeed object and ChannelFeed object
168 public function getFeedObject( $feedFormat ){
169 $changesFeed = new ChangesFeed( $feedFormat, 'rcfeed' );
170 $formatter = $changesFeed->getFeedObject(
171 wfMsgForContent( 'recentchanges' ),
172 wfMsgForContent( 'recentchanges-feed-description' )
174 return array( $changesFeed, $formatter );
178 * Process $par and put options found if $opts
179 * Mainly used when including the page
182 * @param $opts FormOptions
184 public function parseParameters( $par, FormOptions
$opts ) {
185 $bits = preg_split( '/\s*,\s*/', trim( $par ) );
186 foreach( $bits as $bit ) {
187 if( 'hidebots' === $bit ) $opts['hidebots'] = true;
188 if( 'bots' === $bit ) $opts['hidebots'] = false;
189 if( 'hideminor' === $bit ) $opts['hideminor'] = true;
190 if( 'minor' === $bit ) $opts['hideminor'] = false;
191 if( 'hideliu' === $bit ) $opts['hideliu'] = true;
192 if( 'hidepatrolled' === $bit ) $opts['hidepatrolled'] = true;
193 if( 'hideanons' === $bit ) $opts['hideanons'] = true;
194 if( 'hidemyself' === $bit ) $opts['hidemyself'] = true;
196 if( is_numeric( $bit ) ) $opts['limit'] = $bit;
199 if( preg_match( '/^limit=(\d+)$/', $bit, $m ) ) $opts['limit'] = $m[1];
200 if( preg_match( '/^days=(\d+)$/', $bit, $m ) ) $opts['days'] = $m[1];
205 * Get last modified date, for client caching
206 * Don't use this if we are using the patrol feature, patrol changes don't
207 * update the timestamp
209 * @param $feedFormat String
210 * @return String or false
212 public function checkLastModified( $feedFormat ) {
213 global $wgUseRCPatrol, $wgOut;
214 $dbr = wfGetDB( DB_SLAVE
);
215 $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __METHOD__
);
216 if( $feedFormat ||
!$wgUseRCPatrol ) {
217 if( $lastmod && $wgOut->checkLastModified( $lastmod ) ) {
218 # Client cache fresh and headers sent, nothing more to do.
226 * Return an array of conditions depending of options set in $opts
228 * @param $opts FormOptions
231 public function buildMainQueryConds( FormOptions
$opts ) {
234 $dbr = wfGetDB( DB_SLAVE
);
237 # It makes no sense to hide both anons and logged-in users
238 # Where this occurs, force anons to be shown
240 if( $opts['hideanons'] && $opts['hideliu'] ){
241 # Check if the user wants to show bots only
242 if( $opts['hidebots'] ){
243 $opts['hideanons'] = false;
246 $opts['hidebots'] = false;
251 $cutoff_unixtime = time() - ( $opts['days'] * 86400 );
252 $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime %
86400);
253 $cutoff = $dbr->timestamp( $cutoff_unixtime );
255 $fromValid = preg_match('/^[0-9]{14}$/', $opts['from']);
256 if( $fromValid && $opts['from'] > wfTimestamp(TS_MW
,$cutoff) ) {
257 $cutoff = $dbr->timestamp($opts['from']);
259 $opts->reset( 'from' );
262 $conds[] = 'rc_timestamp >= ' . $dbr->addQuotes( $cutoff );
265 $hidePatrol = $wgUser->useRCPatrol() && $opts['hidepatrolled'];
266 $hideLoggedInUsers = $opts['hideliu'] && !$forcebot;
267 $hideAnonymousUsers = $opts['hideanons'] && !$forcebot;
269 if( $opts['hideminor'] ) $conds['rc_minor'] = 0;
270 if( $opts['hidebots'] ) $conds['rc_bot'] = 0;
271 if( $hidePatrol ) $conds['rc_patrolled'] = 0;
272 if( $forcebot ) $conds['rc_bot'] = 1;
273 if( $hideLoggedInUsers ) $conds[] = 'rc_user = 0';
274 if( $hideAnonymousUsers ) $conds[] = 'rc_user != 0';
276 if( $opts['hidemyself'] ) {
277 if( $wgUser->getId() ) {
278 $conds[] = 'rc_user != ' . $dbr->addQuotes( $wgUser->getId() );
280 $conds[] = 'rc_user_text != ' . $dbr->addQuotes( $wgUser->getName() );
284 # Namespace filtering
285 if( $opts['namespace'] !== '' ) {
286 if( !$opts['invert'] ) {
287 $conds[] = 'rc_namespace = ' . $dbr->addQuotes( $opts['namespace'] );
289 $conds[] = 'rc_namespace != ' . $dbr->addQuotes( $opts['namespace'] );
299 * @param $conds Array
300 * @param $opts FormOptions
301 * @return database result or false (for Recentchangeslinked only)
303 public function doMainQuery( $conds, $opts ) {
306 $tables = array( 'recentchanges' );
307 $join_conds = array();
308 $query_options = array( 'USE INDEX' => array('recentchanges' => 'rc_timestamp') );
310 $uid = $wgUser->getId();
311 $dbr = wfGetDB( DB_SLAVE
);
312 $limit = $opts['limit'];
313 $namespace = $opts['namespace'];
315 $invert = $opts['invert'];
317 // JOIN on watchlist for users
319 $tables[] = 'watchlist';
320 $join_conds['watchlist'] = array('LEFT JOIN',
321 "wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace");
323 if ($wgUser->isAllowed("rollback")) {
325 $join_conds['page'] = array('LEFT JOIN', 'rc_cur_id=page_id');
327 if ( !$this->including() ) {
329 // Doesn't work when transcluding. See bug 23293
331 // Fields are * in this case, so let the function modify an empty array to keep it happy.
332 ChangeTags
::modifyDisplayQuery(
333 $tables, $fields, $conds, $join_conds, $query_options, $opts['tagfilter']
337 if ( !wfRunHooks( 'SpecialRecentChangesQuery', array( &$conds, &$tables, &$join_conds, $opts, &$query_options, &$select ) ) )
340 // Don't use the new_namespace_time timestamp index if:
341 // (a) "All namespaces" selected
342 // (b) We want all pages NOT in a certain namespaces (inverted)
343 // (c) There is a tag to filter on (use tag index instead)
344 // (d) UNION + sort/limit is not an option for the DBMS
345 if( is_null( $namespace )
346 ||
( $invert && !is_null( $namespace ) )
347 ||
$opts['tagfilter'] != ''
348 ||
!$dbr->unionSupportsOrderAndLimit() )
350 $res = $dbr->select( $tables, '*', $conds, __METHOD__
,
351 array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => $limit ) +
354 // We have a new_namespace_time index! UNION over new=(0,1) and sort result set!
357 $sqlNew = $dbr->selectSQLText( $tables, $select,
358 array( 'rc_new' => 1 ) +
$conds,
360 array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => $limit,
361 'USE INDEX' => array('recentchanges' => 'rc_timestamp') ),
364 $sqlOld = $dbr->selectSQLText( $tables, '*',
365 array( 'rc_new' => 0 ) +
$conds,
367 array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => $limit,
368 'USE INDEX' => array('recentchanges' => 'rc_timestamp') ),
370 # Join the two fast queries, and sort the result set
371 $sql = $dbr->unionQueries(array($sqlNew, $sqlOld), false).' ORDER BY rc_timestamp DESC';
372 $sql = $dbr->limitResult($sql, $limit, false);
373 $res = $dbr->query( $sql, __METHOD__
);
380 * Send output to $wgOut, only called if not used feeds
382 * @param $rows Array of database rows
383 * @param $opts FormOptions
385 public function webOutput( $rows, $opts ) {
386 global $wgOut, $wgUser, $wgRCShowWatchingUsers, $wgShowUpdatedMarker;
387 global $wgAllowCategorizedRecentChanges;
389 $limit = $opts['limit'];
391 if( !$this->including() ) {
392 // Output options box
393 $this->doHeader( $opts );
396 // And now for the content
397 $wgOut->setFeedAppendQuery( $this->getFeedQuery() );
399 if( $wgAllowCategorizedRecentChanges ) {
400 $this->filterByCategories( $rows, $opts );
403 $showWatcherCount = $wgRCShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' );
404 $watcherCache = array();
406 $dbr = wfGetDB( DB_SLAVE
);
409 $list = ChangesList
::newFromUser( $wgUser );
411 $s = $list->beginRecentChangesList();
412 foreach( $rows as $obj ) {
413 if( $limit == 0 ) break;
414 $rc = RecentChange
::newFromRow( $obj );
415 $rc->counter
= $counter++
;
416 # Check if the page has been updated since the last visit
417 if( $wgShowUpdatedMarker && !empty($obj->wl_notificationtimestamp
) ) {
418 $rc->notificationtimestamp
= ($obj->rc_timestamp
>= $obj->wl_notificationtimestamp
);
420 $rc->notificationtimestamp
= false; // Default
422 # Check the number of users watching the page
423 $rc->numberofWatchingusers
= 0; // Default
424 if( $showWatcherCount && $obj->rc_namespace
>= 0 ) {
425 if( !isset($watcherCache[$obj->rc_namespace
][$obj->rc_title
]) ) {
426 $watcherCache[$obj->rc_namespace
][$obj->rc_title
] =
427 $dbr->selectField( 'watchlist',
430 'wl_namespace' => $obj->rc_namespace
,
431 'wl_title' => $obj->rc_title
,
433 __METHOD__
. '-watchers' );
435 $rc->numberofWatchingusers
= $watcherCache[$obj->rc_namespace
][$obj->rc_title
];
437 $s .= $list->recentChangesLine( $rc, !empty( $obj->wl_user
), $counter );
440 $s .= $list->endRecentChangesList();
441 $wgOut->addHTML( $s );
445 * Get the query string to append to feed link URLs.
446 * This is overridden by RCL to add the target parameter
448 public function getFeedQuery() {
453 * Return the text to be displayed above the changes
455 * @param $opts FormOptions
456 * @return String: XHTML
458 public function doHeader( $opts ) {
459 global $wgScript, $wgOut;
461 $this->setTopText( $wgOut, $opts );
463 $defaults = $opts->getAllValues();
464 $nondefaults = $opts->getChangedValues();
465 $opts->consumeValues( array( 'namespace', 'invert', 'tagfilter',
466 'categories', 'categories_any' ) );
469 $panel[] = $this->optionsPanel( $defaults, $nondefaults );
472 $extraOpts = $this->getExtraOptions( $opts );
473 $extraOptsCount = count( $extraOpts );
475 $submit = ' ' . Xml
::submitbutton( wfMsg( 'allpagessubmit' ) );
477 $out = Xml
::openElement( 'table', array( 'class' => 'mw-recentchanges-table' ) );
478 foreach( $extraOpts as $optionRow ) {
479 # Add submit button to the last row only
481 $addSubmit = $count === $extraOptsCount ?
$submit : '';
483 $out .= Xml
::openElement( 'tr' );
484 if( is_array( $optionRow ) ) {
485 $out .= Xml
::tags( 'td', array( 'class' => 'mw-label' ), $optionRow[0] );
486 $out .= Xml
::tags( 'td', array( 'class' => 'mw-input' ), $optionRow[1] . $addSubmit );
488 $out .= Xml
::tags( 'td', array( 'class' => 'mw-input', 'colspan' => 2 ), $optionRow . $addSubmit );
490 $out .= Xml
::closeElement( 'tr' );
492 $out .= Xml
::closeElement( 'table' );
494 $unconsumed = $opts->getUnconsumedValues();
495 foreach( $unconsumed as $key => $value ) {
496 $out .= Xml
::hidden( $key, $value );
499 $t = $this->getTitle();
500 $out .= Xml
::hidden( 'title', $t->getPrefixedText() );
501 $form = Xml
::tags( 'form', array( 'action' => $wgScript ), $out );
503 $panelString = implode( "\n", $panel );
506 Xml
::fieldset( wfMsg( 'recentchanges-legend' ), $panelString, array( 'class' => 'rcoptions' ) )
509 $wgOut->addHTML( ChangesList
::flagLegend() );
511 $this->setBottomText( $wgOut, $opts );
515 * Get options to be displayed in a form
517 * @param $opts FormOptions
520 function getExtraOptions( $opts ){
521 $extraOpts = array();
522 $extraOpts['namespace'] = $this->namespaceFilterForm( $opts );
524 global $wgAllowCategorizedRecentChanges;
525 if( $wgAllowCategorizedRecentChanges ) {
526 $extraOpts['category'] = $this->categoryFilterForm( $opts );
529 $tagFilter = ChangeTags
::buildTagFilterSelector( $opts['tagfilter'] );
530 if ( count($tagFilter) )
531 $extraOpts['tagfilter'] = $tagFilter;
533 wfRunHooks( 'SpecialRecentChangesPanel', array( &$extraOpts, $opts ) );
538 * Send the text to be displayed above the options
540 * @param $out OutputPage
541 * @param $opts FormOptions
543 function setTopText( OutputPage
$out, FormOptions
$opts ){
544 $out->addWikiText( wfMsgForContentNoTrans( 'recentchangestext' ) );
548 * Send the text to be displayed after the options, for use in
549 * Recentchangeslinked
551 * @param $out OutputPage
552 * @param $opts FormOptions
554 function setBottomText( OutputPage
$out, FormOptions
$opts ){}
557 * Creates the choose namespace selection
559 * @param $opts FormOptions
562 protected function namespaceFilterForm( FormOptions
$opts ) {
563 $nsSelect = Xml
::namespaceSelector( $opts['namespace'], '' );
564 $nsLabel = Xml
::label( wfMsg('namespace'), 'namespace' );
565 $invert = Xml
::checkLabel( wfMsg('invert'), 'invert', 'nsinvert', $opts['invert'] );
566 return array( $nsLabel, "$nsSelect $invert" );
570 * Create a input to filter changes by categories
572 * @param $opts FormOptions
575 protected function categoryFilterForm( FormOptions
$opts ) {
576 list( $label, $input ) = Xml
::inputLabelSep( wfMsg('rc_categories'),
577 'categories', 'mw-categories', false, $opts['categories'] );
579 $input .= ' ' . Xml
::checkLabel( wfMsg('rc_categories_any'),
580 'categories_any', 'mw-categories_any', $opts['categories_any'] );
582 return array( $label, $input );
586 * Filter $rows by categories set in $opts
588 * @param $rows Array of database rows
589 * @param $opts FormOptions
591 function filterByCategories( &$rows, FormOptions
$opts ) {
592 $categories = array_map( 'trim', explode( '|' , $opts['categories'] ) );
594 if( !count( $categories ) ) {
600 foreach( $categories as $cat ) {
602 if( $cat == '' ) continue;
610 foreach( $rows AS $k => $r ) {
611 $nt = Title
::makeTitle( $r->rc_namespace
, $r->rc_title
);
612 $id = $nt->getArticleID();
613 if( $id == 0 ) continue; # Page might have been deleted...
614 if( !in_array( $id, $articles ) ) {
617 if( !isset( $a2r[$id] ) ) {
625 if( !count( $articles ) ||
!count( $cats ) )
629 $c = new Categoryfinder
;
630 $c->seed( $articles, $cats, $opts['categories_any'] ?
"OR" : "AND" ) ;
635 foreach( $match AS $id ) {
636 foreach( $a2r[$id] AS $rev ) {
638 $newrows[$k] = $rowsarr[$k];
645 * Makes change an option link which carries all the other options
647 * @param $title Title
648 * @param $override Array: options to override
649 * @param $options Array: current options
650 * @param $active Boolean: whether to show the link in bold
652 function makeOptionsLink( $title, $override, $options, $active = false ) {
654 $sk = $wgUser->getSkin();
655 $params = $override +
$options;
657 return $sk->link( $this->getTitle(), '<strong>' . htmlspecialchars( $title ) . '</strong>',
658 array(), $params, array( 'known' ) );
660 return $sk->link( $this->getTitle(), htmlspecialchars( $title ), array() , $params, array( 'known' ) );
665 * Creates the options panel.
667 * @param $defaults Array
668 * @param $nondefaults Array
670 function optionsPanel( $defaults, $nondefaults ) {
671 global $wgLang, $wgUser, $wgRCLinkLimits, $wgRCLinkDays;
673 $options = $nondefaults +
$defaults;
676 if( !wfEmptyMsg( 'rclegend', wfMsg('rclegend') ) ) {
677 $note .= '<div class="mw-rclegend">' . wfMsgExt( 'rclegend', array('parseinline') ) . "</div>\n";
679 if( $options['from'] ) {
680 $note .= wfMsgExt( 'rcnotefrom', array( 'parseinline' ),
681 $wgLang->formatNum( $options['limit'] ),
682 $wgLang->timeanddate( $options['from'], true ),
683 $wgLang->date( $options['from'], true ),
684 $wgLang->time( $options['from'], true ) ) . '<br />';
687 # Sort data for display and make sure it's unique after we've added user data.
688 $wgRCLinkLimits[] = $options['limit'];
689 $wgRCLinkDays[] = $options['days'];
690 sort( $wgRCLinkLimits );
691 sort( $wgRCLinkDays );
692 $wgRCLinkLimits = array_unique( $wgRCLinkLimits );
693 $wgRCLinkDays = array_unique( $wgRCLinkDays );
696 foreach( $wgRCLinkLimits as $value ) {
697 $cl[] = $this->makeOptionsLink( $wgLang->formatNum( $value ),
698 array( 'limit' => $value ), $nondefaults, $value == $options['limit'] ) ;
700 $cl = $wgLang->pipeList( $cl );
702 // day links, reset 'from' to none
703 foreach( $wgRCLinkDays as $value ) {
704 $dl[] = $this->makeOptionsLink( $wgLang->formatNum( $value ),
705 array( 'days' => $value, 'from' => '' ), $nondefaults, $value == $options['days'] ) ;
707 $dl = $wgLang->pipeList( $dl );
711 $showhide = array( wfMsg( 'show' ), wfMsg( 'hide' ) );
712 $minorLink = $this->makeOptionsLink( $showhide[1-$options['hideminor']],
713 array( 'hideminor' => 1-$options['hideminor'] ), $nondefaults);
714 $botLink = $this->makeOptionsLink( $showhide[1-$options['hidebots']],
715 array( 'hidebots' => 1-$options['hidebots'] ), $nondefaults);
716 $anonsLink = $this->makeOptionsLink( $showhide[ 1 - $options['hideanons'] ],
717 array( 'hideanons' => 1 - $options['hideanons'] ), $nondefaults );
718 $liuLink = $this->makeOptionsLink( $showhide[1-$options['hideliu']],
719 array( 'hideliu' => 1-$options['hideliu'] ), $nondefaults);
720 $patrLink = $this->makeOptionsLink( $showhide[1-$options['hidepatrolled']],
721 array( 'hidepatrolled' => 1-$options['hidepatrolled'] ), $nondefaults);
722 $myselfLink = $this->makeOptionsLink( $showhide[1-$options['hidemyself']],
723 array( 'hidemyself' => 1-$options['hidemyself'] ), $nondefaults);
725 $links[] = wfMsgHtml( 'rcshowhideminor', $minorLink );
726 $links[] = wfMsgHtml( 'rcshowhidebots', $botLink );
727 $links[] = wfMsgHtml( 'rcshowhideanons', $anonsLink );
728 $links[] = wfMsgHtml( 'rcshowhideliu', $liuLink );
729 if( $wgUser->useRCPatrol() )
730 $links[] = wfMsgHtml( 'rcshowhidepatr', $patrLink );
731 $links[] = wfMsgHtml( 'rcshowhidemine', $myselfLink );
732 $hl = $wgLang->pipeList( $links );
734 // show from this onward link
735 $now = $wgLang->timeanddate( wfTimestampNow(), true );
736 $tl = $this->makeOptionsLink( $now, array( 'from' => wfTimestampNow() ), $nondefaults );
738 $rclinks = wfMsgExt( 'rclinks', array( 'parseinline', 'replaceafter' ),
740 $rclistfrom = wfMsgExt( 'rclistfrom', array( 'parseinline', 'replaceafter' ), $tl );
741 return "{$note}$rclinks<br />$rclistfrom";