Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
experimental: true

env:
MW_VERSION: ${{ matrix.mediawiki_version }}
Expand Down
10 changes: 5 additions & 5 deletions includes/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use MediaWiki\MediaWikiServices;
use SD\Sql\PropertyTypeDbInfo;
use SD\Sql\SqlProvider;
use SMWDIProperty;
use SMW\DIProperty;
use SMW\DIWikiPage;
use SMWDIUri;
use SMWDIWikiPage;

/**
* Defines a class, Filter, that holds the information in a filter.
Expand Down Expand Up @@ -349,11 +349,11 @@ private function getPropertyType() {

$store = smwfGetStore();
$escapedProperty = $this->escapedProperty();
$propPage = new SMWDIWikiPage( $escapedProperty, SMW_NS_PROPERTY, '' );
$types = $store->getPropertyValues( $propPage, new SMWDIProperty( '_TYPE' ) );
$propPage = new DIWikiPage( $escapedProperty, SMW_NS_PROPERTY, '' );
$types = $store->getPropertyValues( $propPage, new DIProperty( '_TYPE' ) );
$datatypeLabels = smwfContLang()->getDatatypeLabels();
if ( count( $types ) > 0 ) {
if ( $types[0] instanceof SMWDIWikiPage ) {
if ( $types[0] instanceof DIWikiPage ) {
$typeValue = $types[0]->getDBkey();
} elseif ( $types[0] instanceof SMWDIURI ) {
// A bit inefficient, but it's the
Expand Down
4 changes: 2 additions & 2 deletions includes/Specials/BrowseData/SemanticResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace SD\Specials\BrowseData;

use Closure;
use SMW\DIWikiPage;
use SMW\Query\PrintRequest;
use SMW\Query\QueryResult;
use SMWDIWikiPage;
use SMWQuery;
use SMWQueryProcessor;

Expand Down Expand Up @@ -57,7 +57,7 @@ private static function createGetSmwQueryResult( $res, $num ) {
$store = smwfGetStore();
while ( ( $num === null || $count < $num ) && $row = $res->fetchObject() ) {
$count++;
$qr[] = new SMWDIWikiPage( $row->t, $row->ns, '' );
$qr[] = new DIWikiPage( $row->t, $row->ns, '' );
if ( method_exists( $store, 'cacheSMWPageID' ) ) {
$store->cacheSMWPageID( $row->id, $row->t, $row->ns, $row->iw, '' );
}
Expand Down
Loading