Martineznovo has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/84/368584/1
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: newchange
Gerrit-Change-Id: Id579a86a26cb438c1866351064c6887dbcea23b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Martineznovo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits