r101281 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101280‎ | r101281 | r101282 >
Date:20:16, 29 October 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
display fragment in subject
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php
@@ -231,16 +231,15 @@
232232 *
233233 * @return A string containing the HTML with the subject line
234234 */
235 - private function displayHead() {
236 - global $wgOut;
237 -
 235+ private function displayHead() {
 236+ global $wgOut;
 237+
238238 $wgOut->setHTMLTitle( $this->subject->getTitle() );
239 - $html = "<table class=\"smwb-factbox\" cellpadding=\"0\" cellspacing=\"0\">\n";
240 - $html .= "<tr class=\"smwb-title\"><td colspan=\"2\">\n";
241 - $html .= smwfGetLinker()->makeLinkObj( $this->subject->getTitle() ) . "\n"; // @todo Replace makeLinkObj with link as soon as we drop MW1.12 compatibility
242 - $html .= "</td></tr>\n";
243 - $html .= "</table>\n";
244 -
 239+ $html = "<table class=\"smwb-factbox\" cellpadding=\"0\" cellspacing=\"0\">\n" .
 240+ "<tr class=\"smwb-title\"><td colspan=\"2\">\n" .
 241+ $this->subject->getShortHTMLText( smwfGetLinker() ) . "\n" .
 242+ "</td></tr>\n</table>\n";
 243+
245244 return $html;
246245 }
247246