r52748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52747‎ | r52748 | r52749 >
Date:16:31, 3 July 2009
Author:thomasv
Status:deferred
Tags:
Comment:
enhance syntax a bit
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -725,6 +725,10 @@
726726 $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=".$text."|num=$pagenum}}</span>";
727727 if( $args["$i"] != null){
728728 $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"]."}}";
729733 } else {
730734 $out.= "{{:".$text."}}";
731735 }
@@ -744,7 +748,13 @@
745749 if($adding){
746750 $out.= "<span>{{:MediaWiki:Proofreadpage_pagenum_template|page="
747751 .$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+ }
749759 }
750760 if($text == $to ) $adding = false;
751761 }

Status & tagging log