Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -1088,9 +1088,10 @@ |
1089 | 1089 | $store = smwfGetStore(); |
1090 | 1090 | while ( ( $count < $num ) && ( $row = $dbr->fetchObject( $res ) ) ) { |
1091 | 1091 | $count++; |
1092 | | - $v = SMWWikiPageValue::makePage( $row->t, $row->ns, $row->sortkey ); |
1093 | | - $qr[] = $v; |
1094 | | - $store->cacheSMWPageID( $row->id, $row->t, $row->ns, $row->iw ); |
| 1092 | + $qr[] = SMWWikiPageValue::makePage( $row->t, $row->ns, $row->sortkey ); |
| 1093 | + if ( method_exists( $store, 'cacheSMWPageID' ) ) { |
| 1094 | + $store->cacheSMWPageID( $row->id, $row->t, $row->ns, $row->iw ); |
| 1095 | + } |
1095 | 1096 | } |
1096 | 1097 | if ( $dbr->fetchObject( $res ) ) { |
1097 | 1098 | $count++; |