protected static function fetchFileChanges(FlaggedRevision $frev, $newFiles = null) { $diffLinks = array(); if ($newFiles === null) { $changes = $frev->findPendingFileChanges('noForeign'); } else { $changes = $frev->findFileChanges($newFiles, 'noForeign'); } foreach ($changes as $tuple) { list($title, $revIdStable, $hasStable) = $tuple; // @TODO: change when MW has file diffs $link = Linker::link($title, htmlspecialchars($title->getPrefixedText())); if (!$hasStable) { $link = "<strong>{$link}</strong>"; } $diffLinks[] = $link; } return $diffLinks; }