jenkins-bot has submitted this change and it was merged. Change subject: Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis ......................................................................
Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis Community thinks this function has too many issues. I do this upon request of User:Yamaha5 The discussion is here: http://bit.ly/1KMVZ7J Change-Id: I4f40c7a89a6fd698009a6290e18948e3924f4f78 --- M cosmetic_changes.py 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/cosmetic_changes.py b/cosmetic_changes.py index b15c226..4a9f528 100644 --- a/cosmetic_changes.py +++ b/cosmetic_changes.py @@ -377,6 +377,10 @@ def cleanUpLinks(self, text): # helper function which works on one link and either returns it # unmodified, or returns a replacement. + if self.site.sitename() != u'wikipedia:fa': + # Per community discussion, this one is not allowed in fa.wp + return + def handleOneLink(match): titleWithSection = match.group('titleWithSection') label = match.group('label') -- To view, visit https://gerrit.wikimedia.org/r/206775 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4f40c7a89a6fd698009a6290e18948e3924f4f78 Gerrit-PatchSet: 4 Gerrit-Project: pywikibot/compat Gerrit-Branch: master Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Ricordisamoa <ricordisa...@openmailbox.org> Gerrit-Reviewer: XZise <commodorefabia...@gmx.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits