Skip to content

Commit 1d5af5c

Browse files
authored
Update KnowledgeGraphApiLoadProperties.php
1 parent d4b7687 commit 1d5af5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/api/KnowledgeGraphApiLoadProperties.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author thomas-topway-it for KM-A
88
*/
99

10-
use MediaWiki\Extension\KnowledgeGraph\Aliases\Title as TitleClass;
10+
use MediaWiki\Title\Title;
1111

1212
class KnowledgeGraphApiLoadProperties extends ApiBase {
1313

@@ -45,7 +45,7 @@ public function execute() {
4545

4646
$params['nodes'] = explode( '|', $params['nodes'] );
4747
foreach ( $params['nodes'] as $titleText ) {
48-
$title_ = TitleClass::newFromText( $titleText );
48+
$title_ = Title::newFromText( $titleText );
4949
if ( $title_ && $title_->isKnown() ) {
5050
if ( !isset( self::$data[$title_->getFullText()] ) ) {
5151
\KnowledgeGraph::setSemanticDataFromApi(

0 commit comments

Comments
 (0)