Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -1125,12 +1125,18 @@ |
1126 | 1126 | while ( ( $count < $num ) && ( $row = $dbr->fetchObject( $res ) ) ) { |
1127 | 1127 | $count++; |
1128 | 1128 | if ( class_exists( 'SMWDIWikiPage' ) ) { |
| 1129 | + // SMW 1.6 |
1129 | 1130 | $qr[] = new SMWDIWikiPage( $row->t, $row->ns, null ); |
1130 | 1131 | } else { |
1131 | 1132 | $qr[] = SMWWikiPageValue::makePage( $row->t, $row->ns, $row->sortkey ); |
1132 | 1133 | } |
1133 | 1134 | if ( method_exists( $store, 'cacheSMWPageID' ) ) { |
1134 | | - $store->cacheSMWPageID( $row->id, $row->t, $row->ns, $row->iw ); |
| 1135 | + if ( method_exists( 'SMWDIWikiPage', 'getSubobjectName' ) ) { |
| 1136 | + // SMW 1.6 |
| 1137 | + $store->cacheSMWPageID( $row->id, $row->t, $row->ns, $row->iw, '' ); |
| 1138 | + } else { |
| 1139 | + $store->cacheSMWPageID( $row->id, $row->t, $row->ns, $row->iw ); |
| 1140 | + } |
1135 | 1141 | } |
1136 | 1142 | } |
1137 | 1143 | if ( $dbr->fetchObject( $res ) ) { |