From c91157d649eb34e88af1bb983420b19b4d04eda7 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Tue, 2 Jul 2019 22:07:25 +0200 Subject: [PATCH] Fix use of argument perfLogFilename in convertLinks.php Maintenance::getArg needs a number to get the argument, not a string Reorg the hasOption calls to match the addArg from constructor Change-Id: Ice7013affb328363daf6e831010de4640583f486 --- maintenance/convertLinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 02152f7b66..2dcabe332b 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -100,10 +100,10 @@ class ConvertLinks extends Maintenance { # not used yet; highest row number from links table to process # $finalRowOffset = 0; + $this->logPerformance = $this->hasOption( 'logperformance' ); + $perfLogFilename = $this->getArg( 1, "convLinksPerf.txt" ); $overwriteLinksTable = !$this->hasOption( 'keep-links-table' ); $noKeys = $this->hasOption( 'noKeys' ); - $this->logPerformance = $this->hasOption( 'logperformance' ); - $perfLogFilename = $this->getArg( 'perfLogFilename', "convLinksPerf.txt" ); # -------------------------------------------------------------------- -- 2.20.1