Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -591,7 +591,6 @@ |
592 | 592 | |
593 | 593 | $pdbk = "$page_namespace:$name" . '/'. $i ; |
594 | 594 | //default |
595 | | - $single=false; |
596 | 595 | $mode = 'normal'; |
597 | 596 | $links = true; |
598 | 597 | |
— | — | @@ -615,25 +614,20 @@ |
616 | 615 | if(is_numeric($iparam)) |
617 | 616 | $offset = $i - $iparam[0]; |
618 | 617 | else |
619 | | - $single = $iparam[0]; |
| 618 | + $mode = $iparam; |
620 | 619 | |
621 | 620 | } |
622 | 621 | } |
623 | 622 | } |
624 | 623 | } |
625 | 624 | |
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 | + |
638 | 632 | |
639 | 633 | $n = strlen($count) - strlen($view); |
640 | 634 | if( $n && ($mode == 'normal' || $mode == 'empty') ){ |