Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -617,7 +617,7 @@ |
618 | 618 | break; |
619 | 619 | default: // fixed value, possibly with comparator addons |
620 | 620 | // for now, treat comparators only if placed before whole value: |
621 | | - $list = preg_split('/^(<|>)/',$value, 2, PREG_SPLIT_DELIM_CAPTURE); |
| 621 | + $list = preg_split('/^(<|>|!)/',$value, 2, PREG_SPLIT_DELIM_CAPTURE); |
622 | 622 | $comparator = SMW_CMP_EQ; |
623 | 623 | if (count($list) == 3) { // initial comparator found ($list[1] should be empty) |
624 | 624 | switch ($list[1]) { |
— | — | @@ -629,6 +629,10 @@ |
630 | 630 | $comparator = SMW_CMP_GEQ; |
631 | 631 | $value = $list[2]; |
632 | 632 | break; |
| 633 | + case '!': |
| 634 | + $comparator = SMW_CMP_NEQ; |
| 635 | + $value = $list[2]; |
| 636 | + break; |
633 | 637 | //default: not possible |
634 | 638 | } |
635 | 639 | } |