mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-09-01 05:56:56 +02:00
more changes
This commit is contained in:
@@ -33,7 +33,7 @@ use MediaWiki\Title\Title;
|
||||
class Target {
|
||||
/**
|
||||
* A Title object for the target page currently being examined.
|
||||
* @var \MediaWiki\Title\Title $title
|
||||
* @var Title $title
|
||||
*/
|
||||
private $title;
|
||||
|
||||
@@ -77,7 +77,7 @@ class Target {
|
||||
* @param String &$title Title of the target page
|
||||
*/
|
||||
public function __construct( $namespace, $title, Config &$config ) {
|
||||
$this->title = \MediaWiki\Title\Title::makeTitleSafe( $namespace, $title );
|
||||
$this->title = Title::makeTitleSafe( $namespace, $title );
|
||||
$this->titleValue = $this->title->getTitleValue();
|
||||
$this->config = $config;
|
||||
|
||||
@@ -253,7 +253,7 @@ class Target {
|
||||
/**
|
||||
* Obtain a page's content.
|
||||
* Workaround for MediaWiki 1.36+ which deprecated Wikipage::factory.
|
||||
* @param \MediaWiki\Title\Title $title
|
||||
* @param Title $title
|
||||
* @return Content content object of the page
|
||||
*/
|
||||
private static function getPageContents( $title ) {
|
||||
|
Reference in New Issue
Block a user