Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Table.php |
— | — | @@ -51,15 +51,16 @@ |
52 | 52 | if ( $this->mShowHeaders != SMW_HEADERS_HIDE ) { // building headers |
53 | 53 | $headers = array(); |
54 | 54 | |
55 | | - foreach ( $res->getPrintRequests() as $pr ) { |
| 55 | + foreach ( $res->getPrintRequests() as /* SMWPrintRequest */ $pr ) { |
56 | 56 | $attribs = array(); |
57 | 57 | $columnClass = str_replace( array( ' ', '_' ), '-', $pr->getText( SMW_OUTPUT_WIKI ) ); |
58 | 58 | $attribs['class'] = $columnClass; |
| 59 | + $text = $pr->getText( $outputmode, ( $this->mShowHeaders == SMW_HEADERS_PLAIN ? null : $this->mLinker ) ); |
59 | 60 | |
60 | 61 | $headers[] = Html::rawElement( |
61 | 62 | 'th', |
62 | 63 | $attribs, |
63 | | - $pr->getText( $outputmode, ( $this->mShowHeaders == SMW_HEADERS_PLAIN ? null : $this->mLinker ) ) |
| 64 | + $text == '' ? ' ' : $text |
64 | 65 | ); |
65 | 66 | } |
66 | 67 | |