Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -820,12 +820,14 @@ |
821 | 821 | if( ( $i >= 1 ) && ( $i + 1 < count( $text_links[1] ) ) ) { |
822 | 822 | $next = $text_links[0][$i+1]; |
823 | 823 | } |
| 824 | + if( $args[$current] ) $current = $args[$current]; |
824 | 825 | if( $current ) $h_out .= "|current=$current"; |
825 | 826 | if( $prev ) $h_out .= "|prev=$prev"; |
826 | 827 | if( $next ) $h_out .= "|next=$next"; |
827 | 828 | if( $from_pagenum ) $h_out .= "|from=$from_pagenum"; |
828 | 829 | if( $to_pagenum ) $h_out .= "|to=$to_pagenum"; |
829 | 830 | foreach ( $attributes as $key => $val ) { |
| 831 | + if( $args[$key] ) $val = $args[$key]; |
830 | 832 | $h_out .= "|$key=$val"; |
831 | 833 | } |
832 | 834 | $h_out .= '}}'; |