whether to use the content language (true) or site language (false) (bool)
&$transform: whether or not to expand variables and templates in the message (bool)
+'OldChangesListRecentChangesLine': Customize entire Recent Changes line.
+&$changeslist: The OldChangesList instance.
+&$s: HTML of the form "<li>...</li>" containing one RC entry.
+&$rc: The RecentChange object.
+
'OpenSearchUrls': Called when constructing the OpenSearch description XML.
Hooks can alter or append to the array of URLs for search & suggestion formats.
&$urls: array of associative arrays with Url element attributes
# Make date header if necessary
$date = $wgLang->date( $rc_timestamp, true, true );
- $s = '';
if( $date != $this->lastdate ) {
if( '' != $this->lastdate ) {
$s .= "</ul>\n";
# Should patrol-related stuff be shown?
$unpatrolled = $wgUser->useRCPatrol() && $rc_patrolled == 0;
- $this->insertDateHeader($s,$rc_timestamp);
+ $dateheader = ""; // $s now contains only <li>...</li>, for hooks' convenience.
+ $this->insertDateHeader($dateheader,$rc_timestamp);
- $s .= '<li>';
+ $s = '<li>';
// Moved pages
if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
$s .= "</li>\n";
+ wfRunHooks('OldChangesListRecentChangesLine', array(&$this, &$s, &$rc));
+
wfProfileOut( $fname.'-rest' );
wfProfileOut( $fname );
- return $s;
+ return $dateheader . $s;
}
}