Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QueryPrinter.php |
— | — | @@ -280,7 +280,7 @@ |
281 | 281 | } |
282 | 282 | } |
283 | 283 | |
284 | | - return $result; |
| 284 | + return $result; |
285 | 285 | } |
286 | 286 | |
287 | 287 | /** |
— | — | @@ -296,10 +296,10 @@ |
297 | 297 | protected function handleParameters( array $params, $outputmode ) { |
298 | 298 | $this->params = $params; |
299 | 299 | $this->m_params = $params; // Compat, change made in 1.6.3/1.7 |
300 | | - |
301 | | - $this->mIntro = $params['intro']; |
302 | | - $this->mOutro = $params['outro']; |
303 | 300 | |
| 301 | + $this->mIntro = str_replace( '_', ' ', $params['intro'] ); |
| 302 | + $this->mOutro = str_replace( '_', ' ', $params['outro'] ); |
| 303 | + |
304 | 304 | $this->mSearchlabel = $params['searchlabel'] === false ? null : $params['searchlabel']; |
305 | 305 | |
306 | 306 | switch ( $params['link'] ) { |
— | — | @@ -469,7 +469,7 @@ |
470 | 470 | * formats, like 'list' and 'table', for use in their getParameters() |
471 | 471 | * functions |
472 | 472 | * |
473 | | - * @deperecated since 1.8, removal in 1.10 |
| 473 | + * @deprecated since 1.8, removal in 1.10 |
474 | 474 | * |
475 | 475 | * @since 1.5.0 |
476 | 476 | * |
— | — | @@ -483,7 +483,7 @@ |
484 | 484 | * Return an array describing the parameters of the export formats |
485 | 485 | * like 'rss' and 'csv', for use in their getParameters() functions |
486 | 486 | * |
487 | | - * @deperecated since 1.8, removal in 1.10 |
| 487 | + * @deprecated since 1.8, removal in 1.10 |
488 | 488 | * |
489 | 489 | * @since 1.5.0 |
490 | 490 | * |
— | — | @@ -556,7 +556,7 @@ |
557 | 557 | * A function to describe the allowed parameters of a query using |
558 | 558 | * any specific format - most query printers should override this |
559 | 559 | * function. |
560 | | - * |
| 560 | + * |
561 | 561 | * @since 1.5 |
562 | 562 | * |
563 | 563 | * @return array of Parameter |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_List.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | protected function handleParameters( array $params, $outputmode ) { |
39 | 39 | parent::handleParameters( $params, $outputmode ); |
40 | 40 | |
41 | | - $this->mSep = $params['sep']; |
| 41 | + $this->mSep = str_replace( '_', ' ', $params['sep'] ); // allow "_" for encoding spaces, as documented |
42 | 42 | $this->mTemplate = trim( $params['template'] ); |
43 | 43 | $this->mNamedArgs = $params['named args']; |
44 | 44 | $this->mUserParam = trim( $params['userparam'] ); |