Index: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php |
— | — | @@ -43,11 +43,14 @@ |
44 | 44 | global $smwgContLang; |
45 | 45 | $datatypeLabels = $smwgContLang->getDatatypeLabels(); |
46 | 46 | if ( count( $types ) > 0 ) { |
47 | | - // SMW 1.6 |
48 | 47 | if ( $types[0] instanceof SMWDIWikiPage ) { |
| 48 | + // SMW 1.6 |
49 | 49 | $typeValue = $types[0]->getDBkey(); |
50 | 50 | } elseif ( $types[0] instanceof SMWDIURI ) { |
51 | | - $typeValue = $types[0]->getURI(); |
| 51 | + // A bit inefficient, but it's the |
| 52 | + // simplest approach. |
| 53 | + $typeID = $types[0]->getFragment(); |
| 54 | + $typeValue = $datatypeLabels[$typeID]; |
52 | 55 | } else { |
53 | 56 | $typeValue = $types[0]->getWikiValue(); |
54 | 57 | } |