Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -829,6 +829,7 @@ |
830 | 830 | global $wgTitle; |
831 | 831 | $parser->mOutput->mCacheTime = -1; |
832 | 832 | $filter = array(); |
| 833 | + $op = array(); |
833 | 834 | $title = ''; |
834 | 835 | $name = 'wpSelect'; |
835 | 836 | $invert = false; |
— | — | @@ -839,8 +840,8 @@ |
840 | 841 | $count = false; |
841 | 842 | $export = false; |
842 | 843 | foreach ( func_get_args() as $arg ) if ( !is_object( $arg ) ) { |
843 | | - if ( preg_match( "|^(.+?)\s*([<>!=]+)\s*(.+)$|i", $arg, $match ) ) { |
844 | | - list( , $k, $op, $v ) = $match; |
| 844 | + if ( preg_match( "|^(.+?)\s*([=!<>]+)\s*(.+)$|i", $arg, $match ) ) { |
| 845 | + list( , $k, $o, $v ) = $match; |
845 | 846 | if ( $k == 'title' ) $title = $v; |
846 | 847 | elseif ( $k == 'name' ) $name = $v; |
847 | 848 | elseif ( $k == 'invert' ) $invert = $v; |
— | — | @@ -850,7 +851,10 @@ |
851 | 852 | elseif ( $k == 'template' ) $template = $v; |
852 | 853 | elseif ( $k == 'count' ) $count = $v; |
853 | 854 | elseif ( $k == 'export' ) $export = $v; |
854 | | - else $filter[$match[1]] = $match[2]; |
| 855 | + else { |
| 856 | + $filter[$k] = $v; |
| 857 | + $op[$k] = $o; |
| 858 | + } |
855 | 859 | } |
856 | 860 | } |
857 | 861 | $this->filter = $filter; |