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;
31 protected $customFilters;
33 public function __construct( $name = 'Recentchanges' ) {
34 parent
::__construct( $name );
38 * Get a FormOptions object containing the default options
42 public function getDefaultOptions() {
43 $opts = new FormOptions();
45 $opts->add( 'days', (int)$this->getUser()->getOption( 'rcdays' ) );
46 $opts->add( 'limit', (int)$this->getUser()->getOption( 'rclimit' ) );
47 $opts->add( 'from', '' );
49 $opts->add( 'hideminor', $this->getUser()->getBoolOption( 'hideminor' ) );
50 $opts->add( 'hidebots', true );
51 $opts->add( 'hideanons', false );
52 $opts->add( 'hideliu', false );
53 $opts->add( 'hidepatrolled', $this->getUser()->getBoolOption( 'hidepatrolled' ) );
54 $opts->add( 'hidemyself', false );
56 $opts->add( 'namespace', '', FormOptions
::INTNULL
);
57 $opts->add( 'invert', false );
58 $opts->add( 'associated', false );
60 $opts->add( 'categories', '' );
61 $opts->add( 'categories_any', false );
62 $opts->add( 'tagfilter', '' );
67 * Create a FormOptions object with options as specified by the user
71 public function setup( $parameters ) {
72 global $wgRequest, $wgRCMaxAge;
74 $opts = $this->getDefaultOptions();
76 $this->customFilters
= array();
77 wfRunHooks( 'SpecialRecentChangesFilters', array( $this, &$this->customFilters
) );
78 foreach( $this->customFilters
as $key => $params ) {
79 $opts->add( $key, $params['default'] );
82 $opts->fetchValuesFromRequest( $wgRequest );
83 $opts->validateIntBounds( 'days', 1, $wgRCMaxAge / ( 3600 * 24 ) );
85 // Give precedence to subpage syntax
86 if( $parameters !== null ) {
87 $this->parseParameters( $parameters, $opts );
90 $opts->validateIntBounds( 'limit', 0, 5000 );
95 * Create a FormOptions object specific for feed requests and return it
99 public function feedSetup() {
100 global $wgFeedLimit, $wgRequest;
101 $opts = $this->getDefaultOptions();
102 # Feed is cached on limit,hideminor,namespace; other params would randomly not work
103 $opts->fetchValuesFromRequest( $wgRequest, array( 'limit', 'hideminor', 'namespace' ) );
104 $opts->validateIntBounds( 'limit', 0, $wgFeedLimit );
109 * Get the current FormOptions for this request
111 public function getOptions() {
112 if ( $this->rcOptions
=== null ) {
114 $feedFormat = $wgRequest->getVal( 'feed' );
115 $this->rcOptions
= $feedFormat ?
$this->feedSetup() : $this->setup( $this->rcSubpage
);
117 return $this->rcOptions
;
122 * Main execution point
124 * @param $subpage String
126 public function execute( $subpage ) {
127 global $wgRequest, $wgOut;
128 $this->rcSubpage
= $subpage;
129 $feedFormat = $wgRequest->getVal( 'feed' );
131 # 10 seconds server-side caching max
132 $wgOut->setSquidMaxage( 10 );
133 # Check if the client has a cached version
134 $lastmod = $this->checkLastModified( $feedFormat );
135 if( $lastmod === false ) {
139 $opts = $this->getOptions();
141 $this->outputHeader();
143 // Fetch results, prepare a batch link existence check query
144 $conds = $this->buildMainQueryConds( $opts );
145 $rows = $this->doMainQuery( $conds, $opts );
146 if( $rows === false ){
147 if( !$this->including() ) {
148 $this->doHeader( $opts );
154 $batch = new LinkBatch
;
155 foreach( $rows as $row ) {
156 $batch->add( NS_USER
, $row->rc_user_text
);
157 $batch->add( NS_USER_TALK
, $row->rc_user_text
);
158 $batch->add( $row->rc_namespace
, $row->rc_title
);
163 list( $changesFeed, $formatter ) = $this->getFeedObject( $feedFormat );
164 $changesFeed->execute( $formatter, $rows, $lastmod, $opts );
166 $this->webOutput( $rows, $opts );
173 * Return an array with a ChangesFeed object and ChannelFeed object
177 public function getFeedObject( $feedFormat ){
178 $changesFeed = new ChangesFeed( $feedFormat, 'rcfeed' );
179 $formatter = $changesFeed->getFeedObject(
180 wfMsgForContent( 'recentchanges' ),
181 wfMsgForContent( 'recentchanges-feed-description' ),
182 $this->getTitle()->getFullURL()
184 return array( $changesFeed, $formatter );
188 * Process $par and put options found if $opts
189 * Mainly used when including the page
192 * @param $opts FormOptions
194 public function parseParameters( $par, FormOptions
$opts ) {
195 $bits = preg_split( '/\s*,\s*/', trim( $par ) );
196 foreach( $bits as $bit ) {
197 if( 'hidebots' === $bit ) {
198 $opts['hidebots'] = true;
200 if( 'bots' === $bit ) {
201 $opts['hidebots'] = false;
203 if( 'hideminor' === $bit ) {
204 $opts['hideminor'] = true;
206 if( 'minor' === $bit ) {
207 $opts['hideminor'] = false;
209 if( 'hideliu' === $bit ) {
210 $opts['hideliu'] = true;
212 if( 'hidepatrolled' === $bit ) {
213 $opts['hidepatrolled'] = true;
215 if( 'hideanons' === $bit ) {
216 $opts['hideanons'] = true;
218 if( 'hidemyself' === $bit ) {
219 $opts['hidemyself'] = true;
222 if( is_numeric( $bit ) ) {
223 $opts['limit'] = $bit;
227 if( preg_match( '/^limit=(\d+)$/', $bit, $m ) ) {
228 $opts['limit'] = $m[1];
230 if( preg_match( '/^days=(\d+)$/', $bit, $m ) ) {
231 $opts['days'] = $m[1];
237 * Get last modified date, for client caching
238 * Don't use this if we are using the patrol feature, patrol changes don't
239 * update the timestamp
241 * @param $feedFormat String
242 * @return String or false
244 public function checkLastModified( $feedFormat ) {
245 $dbr = wfGetDB( DB_SLAVE
);
246 $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __METHOD__
);
247 if( $feedFormat ||
!$this->getUser()->useRCPatrol() ) {
248 if( $lastmod && $this->getOutput()->checkLastModified( $lastmod ) ) {
249 # Client cache fresh and headers sent, nothing more to do.
257 * Return an array of conditions depending of options set in $opts
259 * @param $opts FormOptions
262 public function buildMainQueryConds( FormOptions
$opts ) {
263 $dbr = wfGetDB( DB_SLAVE
);
266 # It makes no sense to hide both anons and logged-in users
267 # Where this occurs, force anons to be shown
269 if( $opts['hideanons'] && $opts['hideliu'] ){
270 # Check if the user wants to show bots only
271 if( $opts['hidebots'] ){
272 $opts['hideanons'] = false;
275 $opts['hidebots'] = false;
280 $cutoff_unixtime = time() - ( $opts['days'] * 86400 );
281 $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime %
86400);
282 $cutoff = $dbr->timestamp( $cutoff_unixtime );
284 $fromValid = preg_match('/^[0-9]{14}$/', $opts['from']);
285 if( $fromValid && $opts['from'] > wfTimestamp(TS_MW
,$cutoff) ) {
286 $cutoff = $dbr->timestamp($opts['from']);
288 $opts->reset( 'from' );
291 $conds[] = 'rc_timestamp >= ' . $dbr->addQuotes( $cutoff );
294 $hidePatrol = $this->getUser()->useRCPatrol() && $opts['hidepatrolled'];
295 $hideLoggedInUsers = $opts['hideliu'] && !$forcebot;
296 $hideAnonymousUsers = $opts['hideanons'] && !$forcebot;
298 if( $opts['hideminor'] ) {
299 $conds['rc_minor'] = 0;
301 if( $opts['hidebots'] ) {
302 $conds['rc_bot'] = 0;
305 $conds['rc_patrolled'] = 0;
308 $conds['rc_bot'] = 1;
310 if( $hideLoggedInUsers ) {
311 $conds[] = 'rc_user = 0';
313 if( $hideAnonymousUsers ) {
314 $conds[] = 'rc_user != 0';
317 if( $opts['hidemyself'] ) {
318 if( $this->getUser()->getId() ) {
319 $conds[] = 'rc_user != ' . $dbr->addQuotes( $this->getUser()->getId() );
321 $conds[] = 'rc_user_text != ' . $dbr->addQuotes( $this->getUser()->getName() );
325 # Namespace filtering
326 if( $opts['namespace'] !== '' ) {
327 $namespaces[] = $opts['namespace'];
329 $inversionSuffix = $opts['invert'] ?
'!' : '';
331 if( $opts['associated'] ) {
332 # namespace association (bug 2429)
333 $namespaces[] = MWNamespace
::getAssociated( $opts['namespace'] );
336 $condition = $dbr->makeList(
337 array( 'rc_namespace' . $inversionSuffix
342 $conds[] = $condition;
351 * @param $conds Array
352 * @param $opts FormOptions
353 * @return database result or false (for Recentchangeslinked only)
355 public function doMainQuery( $conds, $opts ) {
356 $tables = array( 'recentchanges' );
357 $join_conds = array();
358 $query_options = array(
359 'USE INDEX' => array( 'recentchanges' => 'rc_timestamp' )
362 $uid = $this->getUser()->getId();
363 $dbr = wfGetDB( DB_SLAVE
);
364 $limit = $opts['limit'];
365 $namespace = $opts['namespace'];
366 $invert = $opts['invert'];
368 $fields = array( $dbr->tableName( 'recentchanges' ) . '.*' ); // all rc columns
369 // JOIN on watchlist for users
371 $tables[] = 'watchlist';
372 $fields[] = 'wl_user';
373 $fields[] = 'wl_notificationtimestamp';
374 $join_conds['watchlist'] = array('LEFT JOIN',
375 "wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace");
377 if ( $this->getUser()->isAllowed( 'rollback' ) ) {
379 $fields[] = 'page_latest';
380 $join_conds['page'] = array('LEFT JOIN', 'rc_cur_id=page_id');
382 if ( !$this->including() ) {
384 // Doesn't work when transcluding. See bug 23293
385 ChangeTags
::modifyDisplayQuery(
386 $tables, $fields, $conds, $join_conds, $query_options,
391 if ( !wfRunHooks( 'SpecialRecentChangesQuery',
392 array( &$conds, &$tables, &$join_conds, $opts, &$query_options, &$fields ) ) )
397 // Don't use the new_namespace_time timestamp index if:
398 // (a) "All namespaces" selected
399 // (b) We want all pages NOT in a certain namespaces (inverted)
400 // (c) There is a tag to filter on (use tag index instead)
401 // (d) UNION + sort/limit is not an option for the DBMS
402 if( is_null( $namespace )
403 ||
( $invert && !is_null( $namespace ) )
404 ||
$opts['tagfilter'] != ''
405 ||
!$dbr->unionSupportsOrderAndLimit() )
407 $res = $dbr->select( $tables, $fields, $conds, __METHOD__
,
408 array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => $limit ) +
411 // We have a new_namespace_time index! UNION over new=(0,1) and sort result set!
414 $sqlNew = $dbr->selectSQLText(
417 array( 'rc_new' => 1 ) +
$conds,
420 'ORDER BY' => 'rc_timestamp DESC',
422 'USE INDEX' => array( 'recentchanges' => 'rc_timestamp' )
427 $sqlOld = $dbr->selectSQLText(
430 array( 'rc_new' => 0 ) +
$conds,
433 'ORDER BY' => 'rc_timestamp DESC',
435 'USE INDEX' => array( 'recentchanges' => 'rc_timestamp' )
439 # Join the two fast queries, and sort the result set
440 $sql = $dbr->unionQueries( array( $sqlNew, $sqlOld ), false ) .
441 ' ORDER BY rc_timestamp DESC';
442 $sql = $dbr->limitResult( $sql, $limit, false );
443 $res = $dbr->query( $sql, __METHOD__
);
450 * Send output to $wgOut, only called if not used feeds
452 * @param $rows Array of database rows
453 * @param $opts FormOptions
455 public function webOutput( $rows, $opts ) {
456 global $wgOut, $wgRCShowWatchingUsers, $wgShowUpdatedMarker;
457 global $wgAllowCategorizedRecentChanges;
459 $limit = $opts['limit'];
461 if( !$this->including() ) {
462 // Output options box
463 $this->doHeader( $opts );
466 // And now for the content
467 $wgOut->setFeedAppendQuery( $this->getFeedQuery() );
469 if( $wgAllowCategorizedRecentChanges ) {
470 $this->filterByCategories( $rows, $opts );
473 $showWatcherCount = $wgRCShowWatchingUsers && $this->getUser()->getOption( 'shownumberswatching' );
474 $watcherCache = array();
476 $dbr = wfGetDB( DB_SLAVE
);
479 $list = ChangesList
::newFromUser( $this->getUser() );
481 $s = $list->beginRecentChangesList();
482 foreach( $rows as $obj ) {
486 $rc = RecentChange
::newFromRow( $obj );
487 $rc->counter
= $counter++
;
488 # Check if the page has been updated since the last visit
489 if( $wgShowUpdatedMarker && !empty( $obj->wl_notificationtimestamp
) ) {
490 $rc->notificationtimestamp
= ( $obj->rc_timestamp
>= $obj->wl_notificationtimestamp
);
492 $rc->notificationtimestamp
= false; // Default
494 # Check the number of users watching the page
495 $rc->numberofWatchingusers
= 0; // Default
496 if( $showWatcherCount && $obj->rc_namespace
>= 0 ) {
497 if( !isset( $watcherCache[$obj->rc_namespace
][$obj->rc_title
] ) ) {
498 $watcherCache[$obj->rc_namespace
][$obj->rc_title
] =
503 'wl_namespace' => $obj->rc_namespace
,
504 'wl_title' => $obj->rc_title
,
506 __METHOD__
. '-watchers'
509 $rc->numberofWatchingusers
= $watcherCache[$obj->rc_namespace
][$obj->rc_title
];
511 $s .= $list->recentChangesLine( $rc, !empty( $obj->wl_user
), $counter );
514 $s .= $list->endRecentChangesList();
515 $wgOut->addHTML( $s );
519 * Get the query string to append to feed link URLs.
520 * This is overridden by RCL to add the target parameter
522 public function getFeedQuery() {
527 * Return the text to be displayed above the changes
529 * @param $opts FormOptions
530 * @return String: XHTML
532 public function doHeader( $opts ) {
533 global $wgScript, $wgOut;
535 $this->setTopText( $wgOut, $opts );
537 $defaults = $opts->getAllValues();
538 $nondefaults = $opts->getChangedValues();
539 $opts->consumeValues( array(
540 'namespace', 'invert', 'associated', 'tagfilter',
541 'categories', 'categories_any'
545 $panel[] = $this->optionsPanel( $defaults, $nondefaults );
548 $extraOpts = $this->getExtraOptions( $opts );
549 $extraOptsCount = count( $extraOpts );
551 $submit = ' ' . Xml
::submitbutton( wfMsg( 'allpagessubmit' ) );
553 $out = Xml
::openElement( 'table', array( 'class' => 'mw-recentchanges-table' ) );
554 foreach( $extraOpts as $optionRow ) {
555 # Add submit button to the last row only
557 $addSubmit = $count === $extraOptsCount ?
$submit : '';
559 $out .= Xml
::openElement( 'tr' );
560 if( is_array( $optionRow ) ) {
561 $out .= Xml
::tags( 'td', array( 'class' => 'mw-label' ), $optionRow[0] );
562 $out .= Xml
::tags( 'td', array( 'class' => 'mw-input' ), $optionRow[1] . $addSubmit );
564 $out .= Xml
::tags( 'td', array( 'class' => 'mw-input', 'colspan' => 2 ), $optionRow . $addSubmit );
566 $out .= Xml
::closeElement( 'tr' );
568 $out .= Xml
::closeElement( 'table' );
570 $unconsumed = $opts->getUnconsumedValues();
571 foreach( $unconsumed as $key => $value ) {
572 $out .= Html
::hidden( $key, $value );
575 $t = $this->getTitle();
576 $out .= Html
::hidden( 'title', $t->getPrefixedText() );
577 $form = Xml
::tags( 'form', array( 'action' => $wgScript ), $out );
579 $panelString = implode( "\n", $panel );
582 Xml
::fieldset( wfMsg( 'recentchanges-legend' ), $panelString, array( 'class' => 'rcoptions' ) )
585 $this->setBottomText( $wgOut, $opts );
589 * Get options to be displayed in a form
591 * @param $opts FormOptions
594 function getExtraOptions( $opts ) {
595 $extraOpts = array();
596 $extraOpts['namespace'] = $this->namespaceFilterForm( $opts );
598 global $wgAllowCategorizedRecentChanges;
599 if( $wgAllowCategorizedRecentChanges ) {
600 $extraOpts['category'] = $this->categoryFilterForm( $opts );
603 $tagFilter = ChangeTags
::buildTagFilterSelector( $opts['tagfilter'] );
604 if ( count( $tagFilter ) ) {
605 $extraOpts['tagfilter'] = $tagFilter;
608 wfRunHooks( 'SpecialRecentChangesPanel', array( &$extraOpts, $opts ) );
613 * Send the text to be displayed above the options
615 * @param $out OutputPage
616 * @param $opts FormOptions
618 function setTopText( OutputPage
$out, FormOptions
$opts ) {
619 $out->addWikiText( wfMsgForContentNoTrans( 'recentchangestext' ) );
623 * Send the text to be displayed after the options, for use in
624 * Recentchangeslinked
626 * @param $out OutputPage
627 * @param $opts FormOptions
629 function setBottomText( OutputPage
$out, FormOptions
$opts ) {}
632 * Creates the choose namespace selection
634 * @todo Uses radio buttons (HASHAR)
635 * @param $opts FormOptions
638 protected function namespaceFilterForm( FormOptions
$opts ) {
639 $nsSelect = Xml
::namespaceSelector( $opts['namespace'], '' );
640 $nsLabel = Xml
::label( wfMsg( 'namespace' ), 'namespace' );
641 $invert = Xml
::checkLabel( wfMsg( 'invert' ), 'invert', 'nsinvert', $opts['invert'] );
642 $associated = Xml
::checkLabel(
643 wfMsg( 'namespace_association' ), 'associated', 'nsassociated',
646 return array( $nsLabel, "$nsSelect $invert $associated" );
650 * Create a input to filter changes by categories
652 * @param $opts FormOptions
655 protected function categoryFilterForm( FormOptions
$opts ) {
656 list( $label, $input ) = Xml
::inputLabelSep( wfMsg( 'rc_categories' ),
657 'categories', 'mw-categories', false, $opts['categories'] );
659 $input .= ' ' . Xml
::checkLabel( wfMsg( 'rc_categories_any' ),
660 'categories_any', 'mw-categories_any', $opts['categories_any'] );
662 return array( $label, $input );
666 * Filter $rows by categories set in $opts
668 * @param $rows Array of database rows
669 * @param $opts FormOptions
671 function filterByCategories( &$rows, FormOptions
$opts ) {
672 $categories = array_map( 'trim', explode( '|' , $opts['categories'] ) );
674 if( !count( $categories ) ) {
680 foreach( $categories as $cat ) {
692 foreach( $rows as $k => $r ) {
693 $nt = Title
::makeTitle( $r->rc_namespace
, $r->rc_title
);
694 $id = $nt->getArticleID();
696 continue; # Page might have been deleted...
698 if( !in_array( $id, $articles ) ) {
701 if( !isset( $a2r[$id] ) ) {
709 if( !count( $articles ) ||
!count( $cats ) ) {
714 $c = new Categoryfinder
;
715 $c->seed( $articles, $cats, $opts['categories_any'] ?
'OR' : 'AND' );
720 foreach( $match as $id ) {
721 foreach( $a2r[$id] as $rev ) {
723 $newrows[$k] = $rowsarr[$k];
730 * Makes change an option link which carries all the other options
732 * @param $title Title
733 * @param $override Array: options to override
734 * @param $options Array: current options
735 * @param $active Boolean: whether to show the link in bold
737 function makeOptionsLink( $title, $override, $options, $active = false ) {
738 $params = $override +
$options;
740 return $this->getSkin()->link(
742 '<strong>' . htmlspecialchars( $title ) . '</strong>',
743 array(), $params, array( 'known' ) );
745 return $this->getSkin()->link(
746 $this->getTitle(), htmlspecialchars( $title ), array(),
747 $params, array( 'known' ) );
752 * Creates the options panel.
754 * @param $defaults Array
755 * @param $nondefaults Array
757 function optionsPanel( $defaults, $nondefaults ) {
758 global $wgLang, $wgRCLinkLimits, $wgRCLinkDays;
760 $options = $nondefaults +
$defaults;
763 if( !wfEmptyMsg( 'rclegend' ) ) {
764 $note .= '<div class="mw-rclegend">' .
765 wfMsgExt( 'rclegend', array( 'parseinline' ) ) . "</div>\n";
767 if( $options['from'] ) {
768 $note .= wfMsgExt( 'rcnotefrom', array( 'parseinline' ),
769 $wgLang->formatNum( $options['limit'] ),
770 $wgLang->timeanddate( $options['from'], true ),
771 $wgLang->date( $options['from'], true ),
772 $wgLang->time( $options['from'], true ) ) . '<br />';
775 # Sort data for display and make sure it's unique after we've added user data.
776 $wgRCLinkLimits[] = $options['limit'];
777 $wgRCLinkDays[] = $options['days'];
778 sort( $wgRCLinkLimits );
779 sort( $wgRCLinkDays );
780 $wgRCLinkLimits = array_unique( $wgRCLinkLimits );
781 $wgRCLinkDays = array_unique( $wgRCLinkDays );
784 foreach( $wgRCLinkLimits as $value ) {
785 $cl[] = $this->makeOptionsLink( $wgLang->formatNum( $value ),
786 array( 'limit' => $value ), $nondefaults, $value == $options['limit'] );
788 $cl = $wgLang->pipeList( $cl );
790 // day links, reset 'from' to none
791 foreach( $wgRCLinkDays as $value ) {
792 $dl[] = $this->makeOptionsLink( $wgLang->formatNum( $value ),
793 array( 'days' => $value, 'from' => '' ), $nondefaults, $value == $options['days'] );
795 $dl = $wgLang->pipeList( $dl );
799 $showhide = array( wfMsg( 'show' ), wfMsg( 'hide' ) );
801 'hideminor' => 'rcshowhideminor',
802 'hidebots' => 'rcshowhidebots',
803 'hideanons' => 'rcshowhideanons',
804 'hideliu' => 'rcshowhideliu',
805 'hidepatrolled' => 'rcshowhidepatr',
806 'hidemyself' => 'rcshowhidemine'
808 foreach ( $this->customFilters
as $key => $params ) {
809 $filters[$key] = $params['msg'];
811 // Disable some if needed
812 if ( !$this->getUser()->useRCPatrol() ) {
813 unset( $filters['hidepatrolled'] );
817 foreach ( $filters as $key => $msg ) {
818 $link = $this->makeOptionsLink( $showhide[1 - $options[$key]],
819 array( $key => 1-$options[$key] ), $nondefaults );
820 $links[] = wfMsgHtml( $msg, $link );
823 // show from this onward link
824 $now = $wgLang->timeanddate( wfTimestampNow(), true );
825 $tl = $this->makeOptionsLink(
826 $now, array( 'from' => wfTimestampNow() ), $nondefaults
829 $rclinks = wfMsgExt( 'rclinks', array( 'parseinline', 'replaceafter' ),
830 $cl, $dl, $wgLang->pipeList( $links ) );
831 $rclistfrom = wfMsgExt( 'rclistfrom', array( 'parseinline', 'replaceafter' ), $tl );
832 return "{$note}$rclinks<br />$rclistfrom";