- if ( !$lines ) {
- // if there are no lines to be rendered (all aborted by hook), don't render the block
- return '';
- }
-
- $r .= $lines;
- $r .= "</table>\n";
-
- $this->rcCacheIndex++;
-
- return $r;
- }
-
- /**
- * @param RCCacheEntry[] $block
- * @param RCCacheEntry $rcObj
- * @param array $queryParams
- * @return string
- * @throws Exception
- * @throws FatalError
- * @throws MWException
- */
- protected function getLineData( array $block, RCCacheEntry $rcObj, array $queryParams = array() ) {
- $RCShowChangedSize = $this->getConfig()->get( 'RCShowChangedSize' );
-
- # Classes to apply -- TODO implement
- $classes = array();
- $type = $rcObj->mAttribs['rc_type'];
- $data = array();
-
- $trClass = $rcObj->watched && $rcObj->mAttribs['rc_timestamp'] >= $rcObj->watched
- ? ' class="mw-enhanced-watched"' : '';
- $separator = ' <span class="mw-changeslist-separator">. .</span> ';
-
- $data['recentChangesFlags'] = array(
- 'newpage' => $type == RC_NEW,
- 'minor' => $rcObj->mAttribs['rc_minor'],
- 'unpatrolled' => $rcObj->unpatrolled,
- 'bot' => $rcObj->mAttribs['rc_bot'],
- );
+ # Sub-entries
+ foreach ( $block as $rcObj ) {
+ # Classes to apply -- TODO implement
+ $classes = array();
+ $type = $rcObj->mAttribs['rc_type'];
+ $data = array();
+
+ $trClass = $rcObj->watched && $rcObj->mAttribs['rc_timestamp'] >= $rcObj->watched
+ ? ' class="mw-enhanced-watched"' : '';
+ $separator = ' <span class="mw-changeslist-separator">. .</span> ';
+
+ $data['recentChangesFlags'] = array(
+ 'newpage' => $type == RC_NEW,
+ 'minor' => $rcObj->mAttribs['rc_minor'],
+ 'unpatrolled' => $rcObj->unpatrolled,
+ 'bot' => $rcObj->mAttribs['rc_bot'],
+ );