protected function getLineData( array $block, RCCacheEntry $rcObj, array $queryParams = [] ) {
$RCShowChangedSize = $this->getConfig()->get( 'RCShowChangedSize' );
- # Classes to apply -- TODO implement
- $classes = [];
+ $classes = [ 'mw-enhanced-rc' ];
$type = $rcObj->mAttribs['rc_type'];
$data = [];
$lineParams = [];
if ( $rcObj->watched
&& $rcObj->mAttribs['rc_timestamp'] >= $rcObj->watched
) {
- $lineParams['classes'] = [ 'mw-enhanced-watched' ];
+ $classes = [ 'mw-enhanced-watched' ];
}
+
$separator = ' <span class="mw-changeslist-separator">. .</span> ';
$data['recentChangesFlags'] = [
// give the hook a chance to modify the data
$success = Hooks::run( 'EnhancedChangesListModifyLineData',
- [ $this, &$data, $block, $rcObj ] );
+ [ $this, &$data, $block, $rcObj, &$classes ] );
if ( !$success ) {
// skip entry if hook aborted it
return [];
unset( $data['timestampLink'] );
}
+ $lineParams['classes'] = array_values( $classes );
+
// everything else: makes it easier for extensions to add or remove data
$lineParams['data'] = array_values( $data );