r52747 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52746‎ | r52747 | r52748 >
Date:16:21, 3 July 2009
Author:thomasv
Status:deferred
Tags:
Comment:
add support for labeled section transclusion in 'pages' command; minor enhancement
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -723,12 +723,20 @@
724724 $text = "$pr_page_namespace:$index/" . $i;
725725 list($pagenum, $links, $mode) = pr_pageNumber($i,$params);
726726 $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+ }
728732 }
729733 $out = $wgParser->recursiveTagParse($out);
730734 }
731735 else {
732 - $adding = false;
 736+ if($from) {
 737+ $adding = false;
 738+ } else {
 739+ $adding = true;
 740+ }
733741 for( $i=0; $i<count( $links[1] ); $i++) {
734742 $text = $links[1][$i];
735743 $pagenum = $links[3][$i];

Status & tagging log