コード例 #1
0
 protected static function fetchTemplateChanges(FlaggedRevision $frev, $newTemplates = null)
 {
     $diffLinks = array();
     if ($newTemplates === null) {
         $changes = $frev->findPendingTemplateChanges();
     } else {
         $changes = $frev->findTemplateChanges($newTemplates);
     }
     foreach ($changes as $tuple) {
         list($title, $revIdStable, $hasStable) = $tuple;
         $link = Linker::linkKnown($title, htmlspecialchars($title->getPrefixedText()), array(), array('diff' => 'cur', 'oldid' => $revIdStable));
         if (!$hasStable) {
             $link = "<strong>{$link}</strong>";
         }
         $diffLinks[] = $link;
     }
     return $diffLinks;
 }