Index: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php |
— | — | @@ -43,9 +43,11 @@ |
44 | 44 | global $smwgContLang; |
45 | 45 | $datatypeLabels = $smwgContLang->getDatatypeLabels(); |
46 | 46 | if ( count( $types ) > 0 ) { |
| 47 | + // SMW 1.6 |
47 | 48 | if ( $types[0] instanceof SMWDIWikiPage ) { |
48 | | - // SMW 1.6 |
49 | 49 | $typeValue = $types[0]->getDBkey(); |
| 50 | + } elseif ( $types[0] instanceof SMWDIURI ) { |
| 51 | + $typeValue = $types[0]->getURI(); |
50 | 52 | } else { |
51 | 53 | $typeValue = $types[0]->getWikiValue(); |
52 | 54 | } |