From b55f6ea5c18dae7a7603269831700f0c1fda6be0 Mon Sep 17 00:00:00 2001 From: Samuel Maenle Date: Sun, 6 Jul 2025 23:21:53 +0200 Subject: [PATCH] Fixing for new MediaWiki Titles --- includes/Target.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Target.php b/includes/Target.php index bcc5fb4..d38ed5c 100644 --- a/includes/Target.php +++ b/includes/Target.php @@ -25,14 +25,14 @@ namespace LinkTitles; use MediaWiki\MediaWikiServices; - +use MediaWiki\Title\Title as MWTitle; /** * Represents a page that is a potential link target. */ class Target { /** * A Title object for the target page currently being examined. - * @var \Title $title + * @var MediaWiki\Title\Title $title */ private $title; @@ -76,7 +76,7 @@ class Target { * @param String &$title Title of the target page */ public function __construct( $namespace, $title, Config &$config ) { - $this->title = \Title::makeTitleSafe( $namespace, $title ); + $this->title = MWTitle::makeTitleSafe( $namespace, $title ); $this->titleValue = $this->title->getTitleValue(); $this->config = $config;