Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -397,13 +397,14 @@ |
398 | 398 | * - $b is the expression from the recordtable query |
399 | 399 | */ |
400 | 400 | function cmpCallback( $a, $b, $operator ) { |
| 401 | + $b = str_replace( '/', '\/', $b ); |
401 | 402 | switch ( $operator ) { |
402 | 403 | case '=': |
403 | | - $cond = preg_match( "|$b|i", $a ); |
| 404 | + $cond = preg_match( "/$b/i", $a ); |
404 | 405 | break; |
405 | 406 | |
406 | 407 | case '!=': |
407 | | - $cond = !preg_match( "|$b|i", $a ); |
| 408 | + $cond = !preg_match( "/$b/i", $a ); |
408 | 409 | break; |
409 | 410 | |
410 | 411 | default: |
Index: trunk/extensions/RecordAdmin/RecordAdmin.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | * @licence GNU General Public Licence 2.0 or later |
13 | 13 | */ |
14 | 14 | |
15 | | -define( 'RECORDADMIN_VERSION', '0.9.7, 2009-12-19' ); |
| 15 | +define( 'RECORDADMIN_VERSION', '0.9.8, 2009-12-19' ); |
16 | 16 | |
17 | 17 | $wgRecordAdminUseNamespaces = false; # Whether record articles should be in a namespace of the same name as their type |
18 | 18 | $wgRecordAdminCategory = 'Records'; # Category containing record types |