Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -723,12 +723,20 @@ |
724 | 724 | $text = "$pr_page_namespace:$index/" . $i; |
725 | 725 | list($pagenum, $links, $mode) = pr_pageNumber($i,$params); |
726 | 726 | $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}</span>"; |
727 | | - $out.= "{{:".$text."}}"; |
| 727 | + if( $args["$i"] != null){ |
| 728 | + $out.= "{{#lst:".$text."|".$args["$i"]."}}"; |
| 729 | + } else { |
| 730 | + $out.= "{{:".$text."}}"; |
| 731 | + } |
728 | 732 | } |
729 | 733 | $out = $wgParser->recursiveTagParse($out); |
730 | 734 | } |
731 | 735 | else { |
732 | | - $adding = false; |
| 736 | + if($from) { |
| 737 | + $adding = false; |
| 738 | + } else { |
| 739 | + $adding = true; |
| 740 | + } |
733 | 741 | for( $i=0; $i<count( $links[1] ); $i++) { |
734 | 742 | $text = $links[1][$i]; |
735 | 743 | $pagenum = $links[3][$i]; |