mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-09-04 07:16:55 +02:00
Fixing for new MediaWiki Titles
This commit is contained in:
@@ -25,14 +25,14 @@
|
|||||||
namespace LinkTitles;
|
namespace LinkTitles;
|
||||||
|
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use MediaWiki\Title\Title as MWTitle;
|
||||||
/**
|
/**
|
||||||
* Represents a page that is a potential link target.
|
* Represents a page that is a potential link target.
|
||||||
*/
|
*/
|
||||||
class Target {
|
class Target {
|
||||||
/**
|
/**
|
||||||
* A Title object for the target page currently being examined.
|
* A Title object for the target page currently being examined.
|
||||||
* @var \Title $title
|
* @var MediaWiki\Title\Title $title
|
||||||
*/
|
*/
|
||||||
private $title;
|
private $title;
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ class Target {
|
|||||||
* @param String &$title Title of the target page
|
* @param String &$title Title of the target page
|
||||||
*/
|
*/
|
||||||
public function __construct( $namespace, $title, Config &$config ) {
|
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->titleValue = $this->title->getTitleValue();
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user