Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -856,11 +856,9 @@ |
857 | 857 | if( !$is_q0 ) { |
858 | 858 | $out .= '<span>{{:MediaWiki:Proofreadpage_pagenum_template|page=' . $text . "|num=$pagenum}}</span>"; |
859 | 859 | } |
860 | | - if( $args["$i"] != null ) { |
861 | | - $out .= '{{#lst:' . $text . '|' . $args["$i"] . '}}'; |
862 | | - } elseif( $page == $from && $args['fromsection'] ) { |
| 860 | + if( $page == $from_page && $args['fromsection'] ) { |
863 | 861 | $out .= '{{#lst:' . $text . '|' . $args['fromsection'] . '}}'; |
864 | | - } elseif( $page == $to && $args['tosection'] ) { |
| 862 | + } elseif( $page == $to_page && $args['tosection'] ) { |
865 | 863 | $out .= '{{#lst:' . $text . '|' . $args['tosection'] . '}}'; |
866 | 864 | } else { |
867 | 865 | $out .= '{{:' . $text . '}}'; |