Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Table.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | */ |
35 | 35 | protected function handleParameters( array $params, $outputmode ) { |
36 | 36 | parent::handleParameters( $params, $outputmode ); |
37 | | - if ( array_key_exists( 'class', $params ) ) { |
| 37 | + if ( $params['class'] !== '' ) { |
38 | 38 | $this->mHTMLClass = $params['class']; |
39 | 39 | } |
40 | 40 | } |
— | — | @@ -41,6 +41,8 @@ |
42 | 42 | protected function getResultText( SMWQueryResult $res, $outputmode ) { |
43 | 43 | global $wgVersion; |
44 | 44 | |
| 45 | + $result = ''; |
| 46 | + |
45 | 47 | $tableRows = array(); |
46 | 48 | |
47 | 49 | $rowNum = 1; |
— | — | @@ -203,8 +205,11 @@ |
204 | 206 | |
205 | 207 | public function getParameters() { |
206 | 208 | $params = array_merge( parent::getParameters(), parent::textDisplayParameters() ); |
| 209 | + |
207 | 210 | $params['class'] = new Parameter( 'class', Parameter::TYPE_STRING ); |
208 | 211 | $params['class']->setMessage( 'smw-paramdesc-table-class' ); |
| 212 | + $params['class']->setDefault( '' ); |
| 213 | + |
209 | 214 | return $params; |
210 | 215 | } |
211 | 216 | |