jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/368584 )

Change subject: refreshLinks.php: Fix fatal when using --category parameter
......................................................................


refreshLinks.php: Fix fatal when using --category parameter

A title object must be passed to refreshCategory(), which is created in
the above lines, not the string representation received as a parameter.

bug: T172061
Change-Id: Id579a86a26cb438c1866351064c6887dbcea23b0
---
M maintenance/refreshLinks.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  MaxSem: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php
index 3e1654a..578a226 100644
--- a/maintenance/refreshLinks.php
+++ b/maintenance/refreshLinks.php
@@ -72,7 +72,7 @@
                        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' ) ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/368584
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id579a86a26cb438c1866351064c6887dbcea23b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Martineznovo <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to