Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -723,11 +723,10 @@ |
724 | 724 | for( $i=$from; $i<=$to;$i++ ) { |
725 | 725 | $text = "$page_namespace:$index/" . $i; |
726 | 726 | list($pagenum, $links, $mode) = pr_pageNumber($i,$params); |
727 | | - $input = "{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}"; |
728 | | - $out.= $wgParser->recursiveTagParse($input); |
729 | | - $input = "{{:".$text."}}"; |
730 | | - $out.= $wgParser->recursiveTagParse($input); |
| 727 | + $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}</span>"; |
| 728 | + $out.= "{{:".$text."}}"; |
731 | 729 | } |
| 730 | + $out = $wgParser->recursiveTagParse($out); |
732 | 731 | } |
733 | 732 | else { |
734 | 733 | $adding = false; |
— | — | @@ -736,13 +735,12 @@ |
737 | 736 | $pagenum = $links[3][$i]; |
738 | 737 | if($text == $page_namespace.":".$from ) $adding = true; |
739 | 738 | if($adding){ |
740 | | - $input = "{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}"; |
741 | | - $out.= $wgParser->recursiveTagParse($input); |
742 | | - $input= "{{:".$text."}}"; |
743 | | - $out.= $wgParser->recursiveTagParse($input); |
| 739 | + $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}</span>"; |
| 740 | + $out.= "{{:".$text."}}"; |
744 | 741 | } |
745 | 742 | if($text == $page_namespace.":".$to ) $adding = false; |
746 | 743 | } |
| 744 | + $out = $wgParser->recursiveTagParse($out); |
747 | 745 | } |
748 | 746 | return $out; |
749 | 747 | } |