* (bug 6023) Fixed mismatch of 0/NULL for wl_notificationtimestamp; now notification
[lhc/web/wiklou.git] / includes / ChangesList.php
1 <?php
2 /**
3 * @package MediaWiki
4 * Contain class to show various lists of change:
5 * - what's link here
6 * - related changes
7 * - recent changes
8 */
9
10 /**
11 * @todo document
12 * @package MediaWiki
13 */
14 class RCCacheEntry extends RecentChange
15 {
16 var $secureName, $link;
17 var $curlink , $difflink, $lastlink , $usertalklink , $versionlink ;
18 var $userlink, $timestamp, $watched;
19
20 function newFromParent( $rc )
21 {
22 $rc2 = new RCCacheEntry;
23 $rc2->mAttribs = $rc->mAttribs;
24 $rc2->mExtra = $rc->mExtra;
25 return $rc2;
26 }
27 } ;
28
29 /**
30 * @package MediaWiki
31 */
32 class ChangesList {
33 # Called by history lists and recent changes
34 #
35
36 /** @todo document */
37 function ChangesList( &$skin ) {
38 $this->skin =& $skin;
39 $this->preCacheMessages();
40 }
41
42 /**
43 * Fetch an appropriate changes list class for the specified user
44 * Some users might want to use an enhanced list format, for instance
45 *
46 * @param $user User to fetch the list class for
47 * @return ChangesList derivative
48 */
49 function newFromUser( &$user ) {
50 $sk =& $user->getSkin();
51 $list = NULL;
52 if( wfRunHooks( 'FetchChangesList', array( &$user, &$skin, &$list ) ) ) {
53 return $user->getOption( 'usenewrc' ) ? new EnhancedChangesList( $sk ) : new OldChangesList( $sk );
54 } else {
55 return $list;
56 }
57 }
58
59 /**
60 * As we use the same small set of messages in various methods and that
61 * they are called often, we call them once and save them in $this->message
62 */
63 function preCacheMessages() {
64 // Precache various messages
65 if( !isset( $this->message ) ) {
66 foreach( explode(' ', 'cur diff hist minoreditletter newpageletter last '.
67 'blocklink changes history boteditletter' ) as $msg ) {
68 $this->message[$msg] = wfMsgExt( $msg, array( 'escape') );
69 }
70 }
71 }
72
73
74 /**
75 * Returns the appropriate flags for new page, minor change and patrolling
76 */
77 function recentChangesFlags( $new, $minor, $patrolled, $nothing = '&nbsp;', $bot = false ) {
78 $f = $new ? '<span class="newpage">' . $this->message['newpageletter'] . '</span>'
79 : $nothing;
80 $f .= $minor ? '<span class="minor">' . $this->message['minoreditletter'] . '</span>'
81 : $nothing;
82 $f .= $bot ? '<span class="bot">' . $this->message['boteditletter'] . '</span>' : $nothing;
83 $f .= $patrolled ? '<span class="unpatrolled">!</span>' : $nothing;
84 return $f;
85 }
86
87 /**
88 * Returns text for the start of the tabular part of RC
89 */
90 function beginRecentChangesList() {
91 $this->rc_cache = array();
92 $this->rcMoveIndex = 0;
93 $this->rcCacheIndex = 0;
94 $this->lastdate = '';
95 $this->rclistOpen = false;
96 return '';
97 }
98
99 /**
100 * Returns text for the end of RC
101 */
102 function endRecentChangesList() {
103 if( $this->rclistOpen ) {
104 return "</ul>\n";
105 } else {
106 return '';
107 }
108 }
109
110
111 function insertMove( &$s, $rc ) {
112 # Diff
113 $s .= '(' . $this->message['diff'] . ') (';
114 # Hist
115 $s .= $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), $this->message['hist'], 'action=history' ) .
116 ') . . ';
117
118 # "[[x]] moved to [[y]]"
119 $msg = ( $rc->mAttribs['rc_type'] == RC_MOVE ) ? '1movedto2' : '1movedto2_redir';
120 $s .= wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ),
121 $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) );
122 }
123
124 function insertDateHeader(&$s, $rc_timestamp) {
125 global $wgLang;
126
127 # Make date header if necessary
128 $date = $wgLang->date( $rc_timestamp, true, true );
129 $s = '';
130 if( $date != $this->lastdate ) {
131 if( '' != $this->lastdate ) {
132 $s .= "</ul>\n";
133 }
134 $s .= '<h4>'.$date."</h4>\n<ul class=\"special\">";
135 $this->lastdate = $date;
136 $this->rclistOpen = true;
137 }
138 }
139
140 function insertLog(&$s, $title, $logtype) {
141 $logname = LogPage::logName( $logtype );
142 $s .= '(' . $this->skin->makeKnownLinkObj($title, $logname ) . ')';
143 }
144
145
146 function insertDiffHist(&$s, &$rc, $unpatrolled) {
147 # Diff link
148 if( $rc->mAttribs['rc_type'] == RC_NEW || $rc->mAttribs['rc_type'] == RC_LOG ) {
149 $diffLink = $this->message['diff'];
150 } else {
151 $rcidparam = $unpatrolled
152 ? array( 'rcid' => $rc->mAttribs['rc_id'] )
153 : array();
154 $diffLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['diff'],
155 wfArrayToCGI( array(
156 'curid' => $rc->mAttribs['rc_cur_id'],
157 'diff' => $rc->mAttribs['rc_this_oldid'],
158 'oldid' => $rc->mAttribs['rc_last_oldid'] ),
159 $rcidparam ),
160 '', '', ' tabindex="'.$rc->counter.'"');
161 }
162 $s .= '('.$diffLink.') (';
163
164 # History link
165 $s .= $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['hist'],
166 wfArrayToCGI( array(
167 'curid' => $rc->mAttribs['rc_cur_id'],
168 'action' => 'history' ) ) );
169 $s .= ') . . ';
170 }
171
172 function insertArticleLink(&$s, &$rc, $unpatrolled, $watched) {
173 # Article link
174 # If it's a new article, there is no diff link, but if it hasn't been
175 # patrolled yet, we need to give users a way to do so
176 $params = ( $unpatrolled && $rc->mAttribs['rc_type'] == RC_NEW )
177 ? 'rcid='.$rc->mAttribs['rc_id']
178 : '';
179 $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params );
180 if($watched) $articlelink = '<strong>'.$articlelink.'</strong>';
181 global $wgContLang;
182 $articlelink .= $wgContLang->getDirMark();
183
184 $s .= ' '.$articlelink;
185 }
186
187 function insertTimestamp(&$s, &$rc) {
188 global $wgLang;
189 # Timestamp
190 $s .= '; ' . $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' . . ';
191 }
192
193 /** Insert links to user page, user talk page and eventually a blocking link */
194 function insertUserRelatedLinks(&$s, &$rc) {
195 $s .= $this->skin->userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] );
196 $s .= $this->skin->userToolLinks( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] );
197 }
198
199 /** insert a formatted comment */
200 function insertComment(&$s, &$rc) {
201 # Add comment
202 if( $rc->mAttribs['rc_type'] != RC_MOVE && $rc->mAttribs['rc_type'] != RC_MOVE_OVER_REDIRECT ) {
203 $s .= $this->skin->commentBlock( $rc->mAttribs['rc_comment'], $rc->getTitle() );
204 }
205 }
206
207 /**
208 * Check whether to enable recent changes patrol features
209 * @return bool
210 */
211 function usePatrol() {
212 global $wgUseRCPatrol, $wgUser;
213 return( $wgUseRCPatrol && $wgUser->isAllowed( 'patrol' ) );
214 }
215
216
217 }
218
219
220 /**
221 * Generate a list of changes using the good old system (no javascript)
222 */
223 class OldChangesList extends ChangesList {
224 /**
225 * Format a line using the old system (aka without any javascript).
226 */
227 function recentChangesLine( &$rc, $watched = false ) {
228 global $wgContLang;
229
230 $fname = 'ChangesList::recentChangesLineOld';
231 wfProfileIn( $fname );
232
233
234 # Extract DB fields into local scope
235 extract( $rc->mAttribs );
236 $curIdEq = 'curid=' . $rc_cur_id;
237
238 # Should patrol-related stuff be shown?
239 $unpatrolled = $this->usePatrol() && $rc_patrolled == 0;
240
241 $this->insertDateHeader($s,$rc_timestamp);
242
243 $s .= '<li>';
244
245 // moved pages
246 if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
247 $this->insertMove( $s, $rc );
248 // log entries
249 } elseif( $rc_namespace == NS_SPECIAL && preg_match( '!^Log/(.*)$!', $rc_title, $matches ) ) {
250 $this->insertLog($s, $rc->getTitle(), $matches[1]);
251 // all other stuff
252 } else {
253 wfProfileIn($fname.'-page');
254
255 $this->insertDiffHist($s, $rc, $unpatrolled);
256
257 # M, N, b and ! (minor, new, bot and unpatrolled)
258 $s .= ' ' . $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $unpatrolled, '', $rc_bot );
259 $this->insertArticleLink($s, $rc, $unpatrolled, $watched);
260
261 wfProfileOut($fname.'-page');
262 }
263
264 wfProfileIn( $fname.'-rest' );
265
266 $this->insertTimestamp($s,$rc);
267 $this->insertUserRelatedLinks($s,$rc);
268 $this->insertComment($s, $rc);
269
270 if($rc->numberofWatchingusers > 0) {
271 $s .= ' ' . wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($rc->numberofWatchingusers));
272 }
273
274 $s .= "</li>\n";
275
276 wfProfileOut( $fname.'-rest' );
277
278 wfProfileOut( $fname );
279 return $s;
280 }
281 }
282
283
284 /**
285 * Generate a list of changes using an Enhanced system (use javascript).
286 */
287 class EnhancedChangesList extends ChangesList {
288 /**
289 * Format a line for enhanced recentchange (aka with javascript and block of lines).
290 */
291 function recentChangesLine( &$baseRC, $watched = false ) {
292 global $wgLang, $wgContLang;
293
294 # Create a specialised object
295 $rc = RCCacheEntry::newFromParent( $baseRC );
296
297 # Extract fields from DB into the function scope (rc_xxxx variables)
298 extract( $rc->mAttribs );
299 $curIdEq = 'curid=' . $rc_cur_id;
300
301 # If it's a new day, add the headline and flush the cache
302 $date = $wgLang->date( $rc_timestamp, true);
303 $ret = '';
304 if( $date != $this->lastdate ) {
305 # Process current cache
306 $ret = $this->recentChangesBlock();
307 $this->rc_cache = array();
308 $ret .= "<h4>{$date}</h4>\n";
309 $this->lastdate = $date;
310 }
311
312 # Should patrol-related stuff be shown?
313 if( $this->usePatrol() ) {
314 $rc->unpatrolled = !$rc_patrolled;
315 } else {
316 $rc->unpatrolled = false;
317 }
318
319 # Make article link
320 if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
321 $msg = ( $rc_type == RC_MOVE ) ? "1movedto2" : "1movedto2_redir";
322 $clink = wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ),
323 $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) );
324 } elseif( $rc_namespace == NS_SPECIAL && preg_match( '!^Log/(.*)$!', $rc_title, $matches ) ) {
325 # Log updates, etc
326 $logtype = $matches[1];
327 $logname = LogPage::logName( $logtype );
328 $clink = '(' . $this->skin->makeKnownLinkObj( $rc->getTitle(), $logname ) . ')';
329 } elseif( $rc->unpatrolled && $rc_type == RC_NEW ) {
330 # Unpatrolled new page, give rc_id in query
331 $clink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '', "rcid={$rc_id}" );
332 } else {
333 $clink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '' );
334 }
335
336 $time = $wgContLang->time( $rc_timestamp, true, true );
337 $rc->watched = $watched;
338 $rc->link = $clink;
339 $rc->timestamp = $time;
340 $rc->numberofWatchingusers = $baseRC->numberofWatchingusers;
341
342 # Make "cur" and "diff" links
343 if( $rc->unpatrolled ) {
344 $rcIdQuery = "&rcid={$rc_id}";
345 } else {
346 $rcIdQuery = '';
347 }
348 $querycur = $curIdEq."&diff=0&oldid=$rc_this_oldid";
349 $querydiff = $curIdEq."&diff=$rc_this_oldid&oldid=$rc_last_oldid$rcIdQuery";
350 $aprops = ' tabindex="'.$baseRC->counter.'"';
351 $curLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['cur'], $querycur, '' ,'', $aprops );
352 if( $rc_type == RC_NEW || $rc_type == RC_LOG || $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
353 if( $rc_type != RC_NEW ) {
354 $curLink = $this->message['cur'];
355 }
356 $diffLink = $this->message['diff'];
357 } else {
358 $diffLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['diff'], $querydiff, '' ,'', $aprops );
359 }
360
361 # Make "last" link
362 if( $rc_last_oldid == 0 || $rc_type == RC_LOG || $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
363 $lastLink = $this->message['last'];
364 } else {
365 $lastLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['last'],
366 $curIdEq.'&diff='.$rc_this_oldid.'&oldid='.$rc_last_oldid . $rcIdQuery );
367 }
368
369 $rc->userlink = $this->skin->userLink( $rc_user, $rc_user_text );
370
371 $rc->lastlink = $lastLink;
372 $rc->curlink = $curLink;
373 $rc->difflink = $diffLink;
374
375 $rc->usertalklink = $this->skin->userToolLinks( $rc_user, $rc_user_text );
376
377 # Put accumulated information into the cache, for later display
378 # Page moves go on their own line
379 $title = $rc->getTitle();
380 $secureName = $title->getPrefixedDBkey();
381 if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
382 # Use an @ character to prevent collision with page names
383 $this->rc_cache['@@' . ($this->rcMoveIndex++)] = array($rc);
384 } else {
385 if( !isset ( $this->rc_cache[$secureName] ) ) {
386 $this->rc_cache[$secureName] = array();
387 }
388 array_push( $this->rc_cache[$secureName], $rc );
389 }
390 return $ret;
391 }
392
393 /**
394 * Enhanced RC group
395 */
396 function recentChangesBlockGroup( $block ) {
397 global $wgContLang;
398 $r = '';
399
400 # Collate list of users
401 $isnew = false;
402 $unpatrolled = false;
403 $userlinks = array();
404 foreach( $block as $rcObj ) {
405 $oldid = $rcObj->mAttribs['rc_last_oldid'];
406 $newid = $rcObj->mAttribs['rc_this_oldid'];
407 if( $rcObj->mAttribs['rc_new'] ) {
408 $isnew = true;
409 }
410 $u = $rcObj->userlink;
411 if( !isset( $userlinks[$u] ) ) {
412 $userlinks[$u] = 0;
413 }
414 if( $rcObj->unpatrolled ) {
415 $unpatrolled = true;
416 }
417 $bot = $rcObj->mAttribs['rc_bot'];
418 $userlinks[$u]++;
419 }
420
421 # Sort the list and convert to text
422 krsort( $userlinks );
423 asort( $userlinks );
424 $users = array();
425 foreach( $userlinks as $userlink => $count) {
426 $text = $userlink;
427 $text .= $wgContLang->getDirMark();
428 if( $count > 1 ) {
429 $text .= ' ('.$count.'&times;)';
430 }
431 array_push( $users, $text );
432 }
433
434 $users = ' <span class="changedby">['.implode('; ',$users).']</span>';
435
436 # Arrow
437 $rci = 'RCI'.$this->rcCacheIndex;
438 $rcl = 'RCL'.$this->rcCacheIndex;
439 $rcm = 'RCM'.$this->rcCacheIndex;
440 $toggleLink = "javascript:toggleVisibility('$rci','$rcm','$rcl')";
441 $tl = '<span id="'.$rcm.'"><a href="'.$toggleLink.'">' . $this->sideArrow() . '</a></span>';
442 $tl .= '<span id="'.$rcl.'" style="display:none"><a href="'.$toggleLink.'">' . $this->downArrow() . '</a></span>';
443 $r .= $tl;
444
445 # Main line
446 $r .= '<tt>';
447 $r .= $this->recentChangesFlags( $isnew, false, $unpatrolled, '&nbsp;', $bot );
448
449 # Timestamp
450 $r .= ' '.$block[0]->timestamp.' ';
451 $r .= '</tt>';
452
453 # Article link
454 $r .= $this->maybeWatchedLink( $block[0]->link, $block[0]->watched );
455 $r .= $wgContLang->getDirMark();
456
457 $curIdEq = 'curid=' . $block[0]->mAttribs['rc_cur_id'];
458 $currentRevision = $block[0]->mAttribs['rc_this_oldid'];
459 if( $block[0]->mAttribs['rc_type'] != RC_LOG ) {
460 # Changes
461 $r .= ' ('.count($block).' ';
462 if( $isnew ) {
463 $r .= $this->message['changes'];
464 } else {
465 $r .= $this->skin->makeKnownLinkObj( $block[0]->getTitle(),
466 $this->message['changes'], $curIdEq."&diff=$currentRevision&oldid=$oldid" );
467 }
468 $r .= '; ';
469
470 # History
471 $r .= $this->skin->makeKnownLinkObj( $block[0]->getTitle(),
472 $this->message['history'], $curIdEq.'&action=history' );
473 $r .= ')';
474 }
475
476 $r .= $users;
477
478 if($block[0]->numberofWatchingusers > 0) {
479 global $wgContLang;
480 $r .= wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($block[0]->numberofWatchingusers));
481 }
482 $r .= "<br />\n";
483
484 # Sub-entries
485 $r .= '<div id="'.$rci.'" style="display:none">';
486 foreach( $block as $rcObj ) {
487 # Get rc_xxxx variables
488 extract( $rcObj->mAttribs );
489
490 $r .= $this->spacerArrow();
491 $r .= '<tt>&nbsp; &nbsp; &nbsp; &nbsp;';
492 $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled, '&nbsp;', $rc_bot );
493 $r .= '&nbsp;</tt>';
494
495 $o = '';
496 if( $rc_this_oldid != 0 ) {
497 $o = 'oldid='.$rc_this_oldid;
498 }
499 if( $rc_type == RC_LOG ) {
500 $link = $rcObj->timestamp;
501 } else {
502 $link = $this->skin->makeKnownLinkObj( $rcObj->getTitle(), $rcObj->timestamp, $curIdEq.'&'.$o );
503 }
504 $link = '<tt>'.$link.'</tt>';
505
506 $r .= $link;
507 $r .= ' (';
508 $r .= $rcObj->curlink;
509 $r .= '; ';
510 $r .= $rcObj->lastlink;
511 $r .= ') . . '.$rcObj->userlink;
512 $r .= $rcObj->usertalklink;
513 $r .= $this->skin->commentBlock( $rc_comment, $rcObj->getTitle() );
514 $r .= "<br />\n";
515 }
516 $r .= "</div>\n";
517
518 $this->rcCacheIndex++;
519 return $r;
520 }
521
522 function maybeWatchedLink( $link, $watched=false ) {
523 if( $watched ) {
524 // FIXME: css style might be more appropriate
525 return '<strong>' . $link . '</strong>';
526 } else {
527 return $link;
528 }
529 }
530
531 /**
532 * Generate HTML for an arrow or placeholder graphic
533 * @param string $dir one of '', 'd', 'l', 'r'
534 * @param string $alt text
535 * @return string HTML <img> tag
536 * @access private
537 */
538 function arrow( $dir, $alt='' ) {
539 global $wgStylePath;
540 $encUrl = htmlspecialchars( $wgStylePath . '/common/images/Arr_' . $dir . '.png' );
541 $encAlt = htmlspecialchars( $alt );
542 return "<img src=\"$encUrl\" width=\"12\" height=\"12\" alt=\"$encAlt\" />";
543 }
544
545 /**
546 * Generate HTML for a right- or left-facing arrow,
547 * depending on language direction.
548 * @return string HTML <img> tag
549 * @access private
550 */
551 function sideArrow() {
552 global $wgContLang;
553 $dir = $wgContLang->isRTL() ? 'l' : 'r';
554 return $this->arrow( $dir, '+' );
555 }
556
557 /**
558 * Generate HTML for a down-facing arrow
559 * depending on language direction.
560 * @return string HTML <img> tag
561 * @access private
562 */
563 function downArrow() {
564 return $this->arrow( 'd', '-' );
565 }
566
567 /**
568 * Generate HTML for a spacer image
569 * @return string HTML <img> tag
570 * @access private
571 */
572 function spacerArrow() {
573 return $this->arrow( '', ' ' );
574 }
575
576 /**
577 * Enhanced RC ungrouped line.
578 * @return string a HTML formated line (generated using $r)
579 */
580 function recentChangesBlockLine( $rcObj ) {
581 global $wgContLang;
582
583 # Get rc_xxxx variables
584 extract( $rcObj->mAttribs );
585 $curIdEq = 'curid='.$rc_cur_id;
586
587 $r = '';
588
589 # Spacer image
590 $r .= $this->spacerArrow();
591
592 # Flag and Timestamp
593 $r .= '<tt>';
594
595 if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
596 $r .= '&nbsp;&nbsp;&nbsp;';
597 } else {
598 $r .= $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $rcObj->unpatrolled, '&nbsp;', $rc_bot );
599 }
600 $r .= ' '.$rcObj->timestamp.' </tt>';
601
602 # Article link
603 $r .= $this->maybeWatchedLink( $rcObj->link, $rcObj->watched );
604
605 # Diff
606 $r .= ' ('. $rcObj->difflink .'; ';
607
608 # Hist
609 $r .= $this->skin->makeKnownLinkObj( $rcObj->getTitle(), wfMsg( 'hist' ), $curIdEq.'&action=history' );
610
611 # User/talk
612 $r .= ') . . '.$rcObj->userlink . $rcObj->usertalklink;
613
614 # Comment
615 if( $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
616 $r .= $this->skin->commentBlock( $rc_comment, $rcObj->getTitle() );
617 }
618
619 if( $rcObj->numberofWatchingusers > 0 ) {
620 $r .= wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($rcObj->numberofWatchingusers));
621 }
622
623 $r .= "<br />\n";
624 return $r;
625 }
626
627 /**
628 * If enhanced RC is in use, this function takes the previously cached
629 * RC lines, arranges them, and outputs the HTML
630 */
631 function recentChangesBlock() {
632 if( count ( $this->rc_cache ) == 0 ) {
633 return '';
634 }
635 $blockOut = '';
636 foreach( $this->rc_cache as $secureName => $block ) {
637 if( count( $block ) < 2 ) {
638 $blockOut .= $this->recentChangesBlockLine( array_shift( $block ) );
639 } else {
640 $blockOut .= $this->recentChangesBlockGroup( $block );
641 }
642 }
643
644 return '<div>'.$blockOut.'</div>';
645 }
646
647 /**
648 * Returns text for the end of RC
649 * If enhanced RC is in use, returns pretty much all the text
650 */
651 function endRecentChangesList() {
652 return $this->recentChangesBlock() . parent::endRecentChangesList();
653 }
654
655 }
656 ?>