Index: trunk/extensions/SemanticMediaWiki/includes/api/ApiAskArgs.php |
— | — | @@ -18,8 +18,15 @@ |
19 | 19 | public function execute() { |
20 | 20 | $params = $this->extractRequestParams(); |
21 | 21 | $this->requireParameters( $params, array( 'conditions' ) ); |
22 | | - $this->parameters = $params['parameters']; |
23 | 22 | |
| 23 | + foreach ( $params['parameters'] as $param ) { |
| 24 | + $parts = explode( '=', $param, 2 ); |
| 25 | + |
| 26 | + if ( count( $parts ) == 2 ) { |
| 27 | + $this->parameters[$parts[0]] = $parts[1]; |
| 28 | + } |
| 29 | + } |
| 30 | + |
24 | 31 | $query = $this->getQuery( |
25 | 32 | implode( array_map( array( __CLASS__, 'wrapCondition' ), $params['conditions'] ) ), |
26 | 33 | array_map( array( __CLASS__, 'printoutFromString' ), $params['printouts'] ) |