Index: trunk/extensions/NaturalLanguageList/NaturalLanguageList.php |
— | — | @@ -140,11 +140,7 @@ |
141 | 141 | $length = count( $this->mParams ); |
142 | 142 | if ( $length == 1 ) { |
143 | 143 | if ( $this->mOptions['fieldsperitem'] > 1 ) { |
144 | | - $r = array(); |
145 | | - foreach( $this->mParams[0] as $i => $v ) { |
146 | | - $r[$i+1] = $v; |
147 | | - } |
148 | | - return wfMsgReplaceArgs( $this->mOptions['itemcover'], $r ); |
| 144 | + return wfMsgReplaceArgs( $this->mOptions['itemcover'], $this->mParams[0] ); |
149 | 145 | } else { |
150 | 146 | return $this->mOptions['itemcover'] === null |
151 | 147 | ? wfMsg ( 'nll-itemcover' , $this->mParams[0] ) |
— | — | @@ -154,11 +150,7 @@ |
155 | 151 | $str = ''; |
156 | 152 | foreach( $this->mParams as $i => $param ) { |
157 | 153 | if ( $this->mOptions['fieldsperitem'] > 1 ) { |
158 | | - $r = array(); |
159 | | - foreach( $param as $i => $v ) { |
160 | | - $r[$i+1] = $v; |
161 | | - } |
162 | | - $str .= wfMsgReplaceArgs( $this->mOptions['itemcover'], $r ); |
| 154 | + $str .= wfMsgReplaceArgs( $this->mOptions['itemcover'], $param ); |
163 | 155 | } else { |
164 | 156 | $str .= $this->mOptions['itemcover'] === null |
165 | 157 | ? wfMsg ( 'nll-itemcover' , $param ) |