applying patch #619

https://mediawiki.org/wiki/Special:Code/pywikipedia/11708