jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/368835 )
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
(cherry picked from commit ec7b5e9262550eb7f3157aa9109abc47b1494f07)
---
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 9f3552a..b672409 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/368835
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: REL1_29
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