Merge "refreshLinks.php: Fix fatal when using --category parameter"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 31 Jul 2017 18:19:03 +0000 (18:19 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 31 Jul 2017 18:19:03 +0000 (18:19 +0000)
maintenance/refreshLinks.php

index 3e1654a..578a226 100644 (file)
@@ -72,7 +72,7 @@ class RefreshLinks extends Maintenance {
                        if ( !$title ) {
                                $this->error( "'$category' is an invalid category name!\n", true );
                        }
-                       $this->refreshCategory( $category );
+                       $this->refreshCategory( $title );
                } elseif ( ( $category = $this->getOption( 'tracking-category', false ) ) !== false ) {
                        $this->refreshTrackingCategory( $category );
                } elseif ( !$this->hasOption( 'dfn-only' ) ) {