Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -32,10 +32,11 @@ |
33 | 33 | * |
34 | 34 | * @param array $params |
35 | 35 | * @param array $printRequests |
| 36 | + * @param boolean $unknownInvalid |
36 | 37 | * |
37 | 38 | * @return array |
38 | 39 | */ |
39 | | - public static function getProcessedParams( array $params, array $printRequests = null ) { |
| 40 | + public static function getProcessedParams( array $params, array $printRequests = null, $unknownInvalid = true ) { |
40 | 41 | $paramDefinitions = self::getParameters(); |
41 | 42 | |
42 | 43 | $formatManipulation = new SMWParamFormat(); |
— | — | @@ -46,7 +47,7 @@ |
47 | 48 | |
48 | 49 | $paramDefinitions['format']->addManipulations( $formatManipulation ); |
49 | 50 | |
50 | | - $validator = new Validator(); |
| 51 | + $validator = new Validator( 'SMW query', $unknownInvalid ); |
51 | 52 | $validator->setParameters( $params, $paramDefinitions, false ); |
52 | 53 | $validator->validateParameters(); |
53 | 54 | |