We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4087c5c commit 5592fa4Copy full SHA for 5592fa4
1 file changed
includes/api/KnowledgeGraphApiLoadCategories.php
@@ -7,8 +7,8 @@
7
* @author thomas-topway-it for KM-A
8
*/
9
10
-use MediaWiki\Extension\KnowledgeGraph\Aliases\Title as TitleClass;
11
use MediaWiki\MediaWikiServices;
+use MediaWiki\Title\Title;
12
13
class KnowledgeGraphApiLoadCategories extends ApiBase {
14
@@ -139,7 +139,7 @@ public function execute() {
139
140
$titles = [];
141
foreach ( $categories as $categoryText ) {
142
- $category_ = TitleClass::makeTitleSafe( NS_CATEGORY, $categoryText );
+ $category_ = Title::makeTitleSafe( NS_CATEGORY, $categoryText );
143
// && $category_->isKnown()
144
if ( $category_ ) {
145
$titles_ = \KnowledgeGraph::articlesInCategories(
0 commit comments