http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88368
Revision: 88368
Author: yaron
Date: 2011-05-18 13:33:41 +0000 (Wed, 18 May 2011)
Log Message:
-----------
More handling for latest SMW 1.6
Modified Paths:
--------------
trunk/extensions/SemanticDrilldown/includes/SD_Filter.php
Modified: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php
===================================================================
--- trunk/extensions/SemanticDrilldown/includes/SD_Filter.php 2011-05-18
13:23:50 UTC (rev 88367)
+++ trunk/extensions/SemanticDrilldown/includes/SD_Filter.php 2011-05-18
13:33:41 UTC (rev 88368)
@@ -43,9 +43,11 @@
global $smwgContLang;
$datatypeLabels = $smwgContLang->getDatatypeLabels();
if ( count( $types ) > 0 ) {
+ // SMW 1.6
if ( $types[0] instanceof SMWDIWikiPage ) {
- // SMW 1.6
$typeValue = $types[0]->getDBkey();
+ } elseif ( $types[0] instanceof SMWDIURI ) {
+ $typeValue = $types[0]->getURI();
} else {
$typeValue = $types[0]->getWikiValue();
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs