r88368 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88367‎ | r88368 | r88369 >
Date:13:33, 18 May 2011
Author:yaron
Status:deferred
Tags:
Comment:
More handling for latest SMW 1.6
Modified paths:
  • /trunk/extensions/SemanticDrilldown/includes/SD_Filter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php
@@ -43,9 +43,11 @@
4444 global $smwgContLang;
4545 $datatypeLabels = $smwgContLang->getDatatypeLabels();
4646 if ( count( $types ) > 0 ) {
 47+ // SMW 1.6
4748 if ( $types[0] instanceof SMWDIWikiPage ) {
48 - // SMW 1.6
4949 $typeValue = $types[0]->getDBkey();
 50+ } elseif ( $types[0] instanceof SMWDIURI ) {
 51+ $typeValue = $types[0]->getURI();
5052 } else {
5153 $typeValue = $types[0]->getWikiValue();
5254 }

Status & tagging log