Fix namespace of \Title class in maintenance script.

- FIX: Removed a fatal bug in the LinkTitles_Maintenance script.
This commit is contained in:
Daniel Kraus
2016-11-09 17:08:57 +01:00
parent 4a4bfbd7de
commit e899f6a5cd

View File

@ -143,7 +143,7 @@ class Cli extends \Maintenance {
// Iterate through the pages; break if a time limit is exceeded. // Iterate through the pages; break if a time limit is exceeded.
foreach ( $res as $row ) { foreach ( $res as $row ) {
$index += 1; $index += 1;
$curTitle = Title::makeTitleSafe( $row->page_namespace, $row->page_title); $curTitle = \Title::makeTitleSafe( $row->page_namespace, $row->page_title);
$this->output( $this->output(
sprintf("\rPage #%d (%02.0f%%)", $index, $index / $numPages * 100) sprintf("\rPage #%d (%02.0f%%)", $index, $index / $numPages * 100)
); );