Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php |
— | — | @@ -401,13 +401,11 @@ |
402 | 402 | // Loop over the comparators to determine which one is used and what the actual value is. |
403 | 403 | foreach ( SMWQueryLanguage::getComparatorStrings() as $srting ) { |
404 | 404 | if ( strpos( $value, $srting ) === 0 ) { |
405 | | - $comparatorString = substr( $value, 0, strlen( $srting ) ); |
| 405 | + $comparator = SMWQueryLanguage::getComparatorFromString( substr( $value, 0, strlen( $srting ) ) ); |
406 | 406 | $value = substr( $value, strlen( $srting ) ); |
407 | 407 | break; |
408 | 408 | } |
409 | 409 | } |
410 | | - |
411 | | - $comparator = SMWQueryLanguage::getComparatorFromString( $comparatorString, SMW_CMP_EQ ); |
412 | 410 | } |
413 | 411 | |
414 | 412 | ///// Get methods ///// |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryLanguage.php |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | $comparators = array( |
96 | 96 | '!~' => SMW_CMP_NLKE, |
97 | 97 | '<<' => SMW_CMP_LESS, |
98 | | - '>>' => SMW_CMP_GRTR, |
| 98 | + '>>' => SMW_CMP_GRTR, |
99 | 99 | '<' => $smwStrictComparators ? SMW_CMP_LESS : SMW_CMP_LEQ, |
100 | 100 | '>' => $smwStrictComparators ? SMW_CMP_GRTR : SMW_CMP_GEQ, |
101 | 101 | '≤' => SMW_CMP_LEQ, |