Skip to content

Commit 5592fa4

Browse files
authored
Update KnowledgeGraphApiLoadCategories.php
1 parent 4087c5c commit 5592fa4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/api/KnowledgeGraphApiLoadCategories.php

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

10-
use MediaWiki\Extension\KnowledgeGraph\Aliases\Title as TitleClass;
1110
use MediaWiki\MediaWikiServices;
11+
use MediaWiki\Title\Title;
1212

1313
class KnowledgeGraphApiLoadCategories extends ApiBase {
1414

@@ -139,7 +139,7 @@ public function execute() {
139139

140140
$titles = [];
141141
foreach ( $categories as $categoryText ) {
142-
$category_ = TitleClass::makeTitleSafe( NS_CATEGORY, $categoryText );
142+
$category_ = Title::makeTitleSafe( NS_CATEGORY, $categoryText );
143143
// && $category_->isKnown()
144144
if ( $category_ ) {
145145
$titles_ = \KnowledgeGraph::articlesInCategories(

0 commit comments

Comments
 (0)