r98071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98070‎ | r98071 | r98072 >
Date:17:45, 25 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed table layout issue
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Table.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Table.php
@@ -51,15 +51,16 @@
5252 if ( $this->mShowHeaders != SMW_HEADERS_HIDE ) { // building headers
5353 $headers = array();
5454
55 - foreach ( $res->getPrintRequests() as $pr ) {
 55+ foreach ( $res->getPrintRequests() as /* SMWPrintRequest */ $pr ) {
5656 $attribs = array();
5757 $columnClass = str_replace( array( ' ', '_' ), '-', $pr->getText( SMW_OUTPUT_WIKI ) );
5858 $attribs['class'] = $columnClass;
 59+ $text = $pr->getText( $outputmode, ( $this->mShowHeaders == SMW_HEADERS_PLAIN ? null : $this->mLinker ) );
5960
6061 $headers[] = Html::rawElement(
6162 'th',
6263 $attribs,
63 - $pr->getText( $outputmode, ( $this->mShowHeaders == SMW_HEADERS_PLAIN ? null : $this->mLinker ) )
 64+ $text == '' ? ' ' : $text
6465 );
6566 }
6667