http://www.mediawiki.org/wiki/Special:Code/pywikipedia/8933
Revision: 8933 Author: xqt Date: 2011-02-07 13:13:25 +0000 (Mon, 07 Feb 2011) Log Message: ----------- the same reason is used for tagging sd-template and deleting broken pages (update from rewrite r8861)
Modified Paths: -------------- trunk/pywikipedia/redirect.py
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2011-02-07 12:57:32 UTC (rev 8932) +++ trunk/pywikipedia/redirect.py 2011-02-07 13:13:25 UTC (rev 8933) @@ -707,9 +707,7 @@ content = pywikibot.translate( targetPage.site().lang, sd_template) + "\n" + content - summary = pywikibot.translate( - targetPage.site().lang, reason_broken) - redir_page.put(content, summary) + redir_page.put(content, reason) except pywikibot.IsRedirectPage: pywikibot.output( u'Redirect target %s is also a redirect! Won't delete anything.'