r33912 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33911‎ | r33912 | r33913 >
Date:15:04, 26 April 2008
Author:aaron
Status:old
Tags:
Comment:
Keep this small
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -1794,8 +1794,9 @@
17951795 $p['totalContentEdits'] = isset($p['totalContentEdits']) ? $p['totalContentEdits'] : 0;
17961796 $p['editComments'] = isset($p['editComments']) ? $p['editComments'] : 0;
17971797 if( $rev && $article->getTitle()->isContentPage() ) {
1798 - $pages = explode(',',trim($p['uniqueContentPages']) ); // page IDs
1799 - if( !in_array( $article->getId(), $pages ) ) {
 1798+ $pages = explode( ',', trim($p['uniqueContentPages']) ); // page IDs
 1799+ # Don't let this get bloated for no reason
 1800+ if( count($pages) < $wgFlaggedRevsAutopromote['uniqueContentPages'] && !in_array($article->getId(),$pages) ) {
18001801 $pages[] = $article->getId();
18011802 $p['uniqueContentPages'] = implode(',',$pages);
18021803 }

Status & tagging log