Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Factbox.php |
— | — | @@ -69,9 +69,9 @@ |
70 | 70 | } elseif ( $propertyDi->isUserDefined() ) { // user defined property |
71 | 71 | $propertyDv->setCaption( preg_replace( '/[ ]/u', ' ', $propertyDv->getWikiValue(), 2 ) ); |
72 | 72 | /// NOTE: the preg_replace is a slight hack to ensure that the left column does not get too narrow |
73 | | - $text .= '<tr><td class="smwpropname">' . $propertyDv->getLongWikiText( true ) . '</td><td class="smwprops">'; |
| 73 | + $text .= '<tr><td class="smwpropname">' . $propertyDv->getShortWikiText( true ) . '</td><td class="smwprops">'; |
74 | 74 | } elseif ( $propertyDv->isVisible() ) { // predefined property |
75 | | - $text .= '<tr><td class="smwspecname">' . $propertyDv->getLongWikiText( true ) . '</td><td class="smwspecs">'; |
| 75 | + $text .= '<tr><td class="smwspecname">' . $propertyDv->getShortWikiText( true ) . '</td><td class="smwspecs">'; |
76 | 76 | } else { // predefined, internal property |
77 | 77 | continue; |
78 | 78 | } |
— | — | @@ -97,12 +97,6 @@ |
98 | 98 | $text .= '</table></div>'; |
99 | 99 | } |
100 | 100 | |
101 | | - // Debugging: show all child objects |
102 | | - // (does not play too well with Records, hence disabled by default) |
103 | | -// foreach ( $semdata->getAllChildren() as $childSemanticData ) { |
104 | | -// $text .= SMWFactbox::getFactboxText( $childSemanticData, $showfactbox ); |
105 | | -// } |
106 | | - |
107 | 101 | wfProfileOut( 'SMWFactbox::printFactbox (SMW)' ); |
108 | 102 | return $text; |
109 | 103 | } |