Index: trunk/extensions/TableMod/TableMod.body.php |
— | — | @@ -176,11 +176,8 @@ |
177 | 177 | |
178 | 178 | public function doParse($input) { |
179 | 179 | global $wgVersion; |
180 | | - $matches = array(); |
181 | 180 | |
182 | | - if (preg_match ('/([0-9]*)\.([0-9]*).*/', $wgVersion, $matches) == 1 && |
183 | | - $matches[1] == 1 && |
184 | | - $matches[2] > 15) { |
| 181 | + if ( version_compare( $wgVersion, '1.15', '>' ) ) { |
185 | 182 | return $this->parser->recursiveTagParse($input, $this->frame); |
186 | 183 | } else { |
187 | 184 | return $this->parser->recursiveTagParse($input); |