http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9322
Revision: 9322 Author: xqt Date: 2011-06-29 06:12:06 +0000 (Wed, 29 Jun 2011) Log Message: ----------- Do not categorize redirects. Changed link to textlink (bugfix for bug #3315973)
Modified Paths: -------------- trunk/pywikipedia/capitalize_redirects.py
Modified: trunk/pywikipedia/capitalize_redirects.py =================================================================== --- trunk/pywikipedia/capitalize_redirects.py 2011-06-29 05:55:32 UTC (rev 9321) +++ trunk/pywikipedia/capitalize_redirects.py 2011-06-29 06:12:06 UTC (rev 9322) @@ -93,7 +93,10 @@ if self.acceptall or choice == 'y': comment = pywikibot.translate(self.site, msg) % page_t try: - page_cap.put(u"#%s [[%s]]" % (self.site.redirect(True), page_t), comment) + page_cap.put(u"#%s %s" % (self.site.redirect(True), + page.title(asLink=True, + textlink=True), + comment) except: pywikibot.output(u"An error occurred, skipping...")