r63260 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63259‎ | r63260 | r63261 >
Date:00:13, 5 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Use NO_EXTRA_USER_LINKS (r63144) to hide clutter from stability log excerpts
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevsXML.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevsXML.php
@@ -473,7 +473,7 @@
474474 wfMsgHtml( 'revreview-unlocked-title' ) . "\"></span>";
475475 }
476476 }
477 -
 477+
478478 /*
479479 * @param FlaggedArticle $flaggedArticle
480480 * @param FlaggedRevision $frev
@@ -503,8 +503,12 @@
504504 */
505505 public static function stabilityLogExcerpt( $article ) {
506506 $logHtml = '';
 507+ $params = array(
 508+ 'lim' => 1,
 509+ 'flags' => LogEventsList::NO_EXTRA_USER_LINKS
 510+ );
507511 LogEventsList::showLogExtract( $logHtml, 'stable',
508 - $article->getTitle()->getPrefixedText(), '', array( 'lim' => 1 ) );
 512+ $article->getTitle()->getPrefixedText(), '', $params );
509513 return "<div id=\"mw-fr-logexcerpt\">$logHtml</div>";
510514 }
511515 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r63298De-merged r63260 to avoid dependencyaaron21:55, 5 March 2010
r67966Hold off r63260 to make merging easieraaron23:23, 13 June 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63144* Split up logLine() with helper functions...aaron22:47, 1 March 2010

Status & tagging log