mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-09-03 23:06:57 +02:00
more changes
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
namespace LinkTitles;
|
namespace LinkTitles;
|
||||||
|
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use \MediaWiki\Title\Title as MWTitle;
|
use \MediaWiki\Title\Title;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a page that is a potential link target.
|
* Represents a page that is a potential link target.
|
||||||
@@ -77,7 +77,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 = MWTitle::makeTitleSafe( $namespace, $title );
|
$this->title = \MediaWiki\Title\Title::makeTitleSafe( $namespace, $title );
|
||||||
$this->titleValue = $this->title->getTitleValue();
|
$this->titleValue = $this->title->getTitleValue();
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
|
@@ -87,7 +87,7 @@ class Targets {
|
|||||||
* The constructor is private to enforce using the singleton pattern.
|
* The constructor is private to enforce using the singleton pattern.
|
||||||
* @param \MediaWiki\Title\Title $title
|
* @param \MediaWiki\Title\Title $title
|
||||||
*/
|
*/
|
||||||
private function __construct( MediaWiki\Title\Title $title, Config $config) {
|
private function __construct( \MediaWiki\Title\Title $title, Config $config) {
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->sourceNamespace = $title->getNamespace();
|
$this->sourceNamespace = $title->getNamespace();
|
||||||
$this->fetch();
|
$this->fetch();
|
||||||
|
Reference in New Issue
Block a user