Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -211,14 +211,18 @@ |
212 | 212 | $text = $rev->getText(); |
213 | 213 | |
214 | 214 | //check if it is using pagelist |
215 | | - preg_match( "/<pagelist(.*?)\/>/is", $text, $m ); |
216 | | - if( $m ){ |
217 | | - preg_match_all( "/([0-9a-z]*?)\=(.*?)\s/", $m[1] . " ", $m2, PREG_PATTERN_ORDER ); |
| 215 | + preg_match_all( "/<pagelist(.*?)\/>/is", $text, $m, PREG_PATTERN_ORDER ); |
| 216 | + if( $m ) { |
| 217 | + |
218 | 218 | $params = array(); |
| 219 | + for( $k = 0; $k < count( $m[1] ); $k++) { |
| 220 | + preg_match_all( "/([0-9a-z]*?)\=(.*?)\s/", $m[1][$k] . " ", $m2, PREG_PATTERN_ORDER ); |
| 221 | + for( $i = 0; $i < count( $m2[1] ); $i++) { |
| 222 | + $params[ $m2[1][$i] ] = $m2[2][$i]; |
| 223 | + } |
| 224 | + } |
219 | 225 | $links = null; |
220 | | - for( $i = 0; $i < count( $m2[1] ); $i++) { |
221 | | - $params[ $m2[1][$i] ] = $m2[2][$i]; |
222 | | - } |
| 226 | + |
223 | 227 | } else { |
224 | 228 | $params = null; |
225 | 229 | $tag_pattern = "/\[\[($page_namespace:.*?)(\|(.*?)|)\]\]/i"; |