r48846 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48845‎ | r48846 | r48847 >
Date:20:25, 25 March 2009
Author:thomasv
Status:ok
Tags:
Comment:
removing single mode
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -591,7 +591,6 @@
592592
593593 $pdbk = "$page_namespace:$name" . '/'. $i ;
594594 //default
595 - $single=false;
596595 $mode = 'normal';
597596 $links = true;
598597
@@ -615,25 +614,20 @@
616615 if(is_numeric($iparam))
617616 $offset = $i - $iparam[0];
618617 else
619 - $single = $iparam[0];
 618+ $mode = $iparam;
620619
621620 }
622621 }
623622 }
624623 }
625624
626 - if( $single ) {
627 - $view = $single;
628 - $offset=$offset+1;
629 - }
630 - else {
631 - $view = ($i - $offset);
632 - if($mode == 'highroman') $view = ' '.toRoman($view);
633 - elseif($mode == 'roman') $view = ' '.strtolower(toRoman($view));
634 - elseif($mode == 'normal') $view = ''.$view;
635 - elseif($mode == 'empty') $view = ''.$view;
636 - else $view = $mode.$view;
637 - }
 625+ $view = ($i - $offset);
 626+ if($mode == 'highroman') $view = ' '.toRoman($view);
 627+ elseif($mode == 'roman') $view = ' '.strtolower(toRoman($view));
 628+ elseif($mode == 'normal') $view = ''.$view;
 629+ elseif($mode == 'empty') $view = ''.$view;
 630+ else $view = $mode;
 631+
638632
639633 $n = strlen($count) - strlen($view);
640634 if( $n && ($mode == 'normal' || $mode == 'empty') ){

Status & tagging log