mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-09-04 07:16:55 +02:00
more changes
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
*/
|
||||
namespace LinkTitles;
|
||||
|
||||
use MediaWiki\Title\Title;
|
||||
|
||||
// Attempt to include the maintenance base class from:
|
||||
// $wgScriptPath/maintenance/Maintenance.php
|
||||
// Our script is normally located at:
|
||||
@@ -143,7 +145,7 @@ class Cli extends \Maintenance {
|
||||
private function singlePage() {
|
||||
$pageName = strval( $this->getOption( 'page' ) );
|
||||
$this->output( "Processing single page: '$pageName'\n" );
|
||||
$title = \MediaWiki\Title\Title::newFromText( $pageName );
|
||||
$title = Title::newFromText( $pageName );
|
||||
$success = Extension::processPage( $title, \RequestContext::getMain() );
|
||||
if ( $success ) {
|
||||
$this->output( "Finished.\n" );
|
||||
@@ -184,7 +186,7 @@ class Cli extends \Maintenance {
|
||||
|
||||
$numProcessed = 0;
|
||||
foreach ( $res as $row ) {
|
||||
$title = \MediaWiki\Title\Title::makeTitleSafe( $row->page_namespace, $row->page_title );
|
||||
$title = Title::makeTitleSafe( $row->page_namespace, $row->page_title );
|
||||
$numProcessed += 1;
|
||||
$index += 1;
|
||||
if ( $verbose ) {
|
||||
|
Reference in New Issue
Block a user