jenkins-bot has submitted this change and it was merged.
Change subject: ReplaceRobot: pass the 'site' argument to textlib.getCategoryLinks() ......................................................................
ReplaceRobot: pass the 'site' argument to textlib.getCategoryLinks()
Change-Id: I4aa073a5bb759d35b960173bfaa1af98dd9c4f3f --- M scripts/replace.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/replace.py b/scripts/replace.py index b3f6470..cf131da 100755 --- a/scripts/replace.py +++ b/scripts/replace.py @@ -605,7 +605,7 @@ if hasattr(self, 'addedCat'): # Fetch only categories in wikitext, otherwise the others will # be explicitly added. - cats = textlib.getCategoryLinks(new_text) + cats = textlib.getCategoryLinks(new_text, site=page.site) if self.addedCat not in cats: cats.append(self.addedCat) new_text = textlib.replaceCategoryLinks(new_text,