Fix PHP namespace errors.

This commit is contained in:
Daniel Kraus
2016-11-09 22:45:44 +01:00
parent feda14e833
commit c67a428dde
2 changed files with 11 additions and 13 deletions

View File

@ -101,11 +101,11 @@ class Cli extends \Maintenance {
if ($this->hasOption('log'))
{
LinkTitles::$ltConsoleOutput = true;
Extension::$ltConsoleOutput = true;
}
if ($this->hasOption('debug'))
{
LinkTitles::$ltConsoleOutputDebug = true;
Extension::$ltConsoleOutputDebug = true;
}
$pagename = strval($this->getOption('page'));
@ -145,7 +145,7 @@ class Cli extends \Maintenance {
$index += 1;
$curTitle = \Title::makeTitleSafe( $row->page_namespace, $row->page_title);
$this->output(
sprintf("\rPage #%d (%02.0f%%)", $index, $index / $numPages * 100)
sprintf("\rPage #%d (%02.0f%%) ", $index, $index / $numPages * 100)
);
Extension::processPage($curTitle, $context);
}