http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9009
Revision: 9009 Author: xqt Date: 2011-02-25 10:06:42 +0000 (Fri, 25 Feb 2011) Log Message: ----------- bugfix for #3140832 introduced with r8762. Patch submitted by Andre Engels. Thanks a lot.
Modified Paths: -------------- trunk/pywikipedia/titletranslate.py
Modified: trunk/pywikipedia/titletranslate.py =================================================================== --- trunk/pywikipedia/titletranslate.py 2011-02-25 09:29:03 UTC (rev 9008) +++ trunk/pywikipedia/titletranslate.py 2011-02-25 10:06:42 UTC (rev 9009) @@ -81,7 +81,10 @@ for newcode in codes: x = None if newcode in family.langs.keys(): - if ( page is None ) or ( ( newcode != sitelang ) and ( not family.interwiki_forwarded_from ) ): + if page is None or \ + (newcode != sitelang and + pywikibot.getSite().family.name + not in family.interwiki_forwarded_from): x = pywikibot.Page(pywikibot.getSite(fam=family, code=newcode), newname) elif newcode in family.interwiki_forwarded_from: x = pywikibot.Page(pywikibot.getSite(fam=newcode, code=newcode), newname)
pywikipedia-svn@lists.wikimedia.org