r112217 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112216‎ | r112217 | r112218 >
Date:16:44, 23 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix layout bug
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPArticleTable.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/includes/EPArticleTable.php
@@ -99,13 +99,7 @@
100100 $user = $this->getUser();
101101
102102 $rowCount = array_reduce( $articles, function( /* integer */ $sum, EPArticle $article ) use ( $user ) {
103 - $sum += max( count( $article->getField( 'reviewers' ) ), 1 );
104 -
105 - if ( $article->canBecomeReviewer( $user ) ) {
106 - $sum++;
107 - }
108 -
109 - return $sum;
 103+ return $sum += max( count( $article->getField( 'reviewers' ) ), 1 );
110104 }, 0 );
111105
112106 $html = Html::openElement( 'tr', $this->getRowAttrs( $row ) );

Status & tagging log