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 5592fa4 commit d4b7687Copy full SHA for d4b7687
1 file changed
includes/api/KnowledgeGraphApiLoadNodes.php
@@ -7,7 +7,7 @@
7
* @author thomas-topway-it for KM-A
8
*/
9
10
-use MediaWiki\Extension\KnowledgeGraph\Aliases\Title as TitleClass;
+use MediaWiki\Title\Title;
11
12
class KnowledgeGraphApiLoadNodes extends ApiBase {
13
@@ -107,7 +107,7 @@ public function execute() {
107
108
$titles = explode( '|', $params['titles'] );
109
foreach ( $titles as $titleText ) {
110
- $title_ = TitleClass::newFromText( $titleText );
+ $title_ = Title::newFromText( $titleText );
111
if ( !$title_ || !$title_->isKnown() ) {
112
continue;
113
}
0 commit comments