Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -725,6 +725,10 @@ |
726 | 726 | $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}</span>"; |
727 | 727 | if( $args["$i"] != null){ |
728 | 728 | $out.= "{{#lst:".$text."|".$args["$i"]."}}"; |
| 729 | + } else if($i == $from && $args["fromsection"]){ |
| 730 | + $out.= "{{#lst:".$text."|".$args["fromsection"]."}}"; |
| 731 | + } else if($i == $to && $args["tosection"]){ |
| 732 | + $out.= "{{#lst:".$text."|".$args["tosection"]."}}"; |
729 | 733 | } else { |
730 | 734 | $out.= "{{:".$text."}}"; |
731 | 735 | } |
— | — | @@ -744,7 +748,13 @@ |
745 | 749 | if($adding){ |
746 | 750 | $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=" |
747 | 751 | .$pr_page_namespace.":".$text."|num=$pagenum}}</span>"; |
748 | | - $out.= "{{:".$pr_page_namespace.":".$text."}}"; |
| 752 | + if($text == $from && $args["fromsection"]){ |
| 753 | + $out.= "{{#lst:".$pr_page_namespace.":".$text."|".$args["fromsection"]."}}"; |
| 754 | + } else if($text == $to && $args["tosection"]){ |
| 755 | + $out.= "{{#lst:".$pr_page_namespace.":".$text."|".$args["tosection"]."}}"; |
| 756 | + } else { |
| 757 | + $out.= "{{:".$pr_page_namespace.":".$text."}}"; |
| 758 | + } |
749 | 759 | } |
750 | 760 | if($text == $to ) $adding = false; |
751 | 761 | } |