mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-09-02 22:46:56 +02:00
Upgrade to use of new MediaWiki\Title for use in MW 1.44
This commit is contained in:
@@ -143,7 +143,7 @@ class Cli extends \Maintenance {
|
||||
private function singlePage() {
|
||||
$pageName = strval( $this->getOption( 'page' ) );
|
||||
$this->output( "Processing single page: '$pageName'\n" );
|
||||
$title = \Title::newFromText( $pageName );
|
||||
$title = MediaWiki\Title\Title::newFromText( $pageName );
|
||||
$success = Extension::processPage( $title, \RequestContext::getMain() );
|
||||
if ( $success ) {
|
||||
$this->output( "Finished.\n" );
|
||||
@@ -184,7 +184,7 @@ class Cli extends \Maintenance {
|
||||
|
||||
$numProcessed = 0;
|
||||
foreach ( $res as $row ) {
|
||||
$title = \Title::makeTitleSafe( $row->page_namespace, $row->page_title );
|
||||
$title = MediaWiki\Title\Title::makeTitleSafe( $row->page_namespace, $row->page_title );
|
||||
$numProcessed += 1;
|
||||
$index += 1;
|
||||
if ( $verbose ) {
|
||||
|
Reference in New Issue
Block a user