Skip to content

Commit fe1dd91

Browse files
authored
Update KnowledgeGraph.php
1 parent 3ceb932 commit fe1dd91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/KnowledgeGraph.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\Category as CategoryClass;
10+
// use Mediawiki\Title\Category;
1111
use MediaWiki\MediaWikiServices;
1212
use MediaWiki\Revision\SlotRecord;
1313
use MediaWiki\Title\Title;
@@ -602,7 +602,7 @@ public static function articlesInCategories( $category, $limit, $offset ) {
602602
return $ret;
603603

604604
// *** this does not work with numerical offset
605-
// $cat = CategoryClass::newFromName( str_replace( ' ', '_', $category ) );
605+
// $cat = Category::newFromName( str_replace( ' ', '_', $category ) );
606606
// $iterator_ = $cat->getMembers( $limit, $offset );
607607
// $ret = [];
608608
// while ( $iterator_->valid() ) {

0 commit comments

Comments
 (0)