Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -1794,8 +1794,9 @@ |
1795 | 1795 | $p['totalContentEdits'] = isset($p['totalContentEdits']) ? $p['totalContentEdits'] : 0; |
1796 | 1796 | $p['editComments'] = isset($p['editComments']) ? $p['editComments'] : 0; |
1797 | 1797 | 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) ) { |
1800 | 1801 | $pages[] = $article->getId(); |
1801 | 1802 | $p['uniqueContentPages'] = implode(',',$pages); |
1802 | 1803 | } |