r51336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51335‎ | r51336 | r51337 >
Date:11:41, 2 June 2009
Author:thomasv
Status:ok
Tags:
Comment:
adding quality0 option to pagelist
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -396,7 +396,7 @@
397397 }
398398
399399 // counters
400 - $n = $n1 = $n2 = $n3 = $n4 = 0;
 400+ $n = $n0 = $n1 = $n2 = $n3 = $n4 = 0;
401401
402402 $dbr = wfGetDB( DB_SLAVE );
403403 $catlinks = $dbr->tableName( 'categorylinks' );
@@ -423,6 +423,10 @@
424424 while ( $x = $dbr->fetchObject( $res ) ) {
425425 $pdbk = $page_ids[$x->cl_from];
426426 switch( $x->cl_to ) {
 427+ case str_replace( ' ' , '_' , wfMsgForContent( 'proofreadpage_quality0_category' ) ):
 428+ $colours[$pdbk] = 'quality0';
 429+ $n0++;
 430+ break;
427431 case str_replace( ' ' , '_' , wfMsgForContent( 'proofreadpage_quality1_category' ) ):
428432 $colours[$pdbk] = 'quality1';
429433 $n1++;

Status & tagging log