Last modified: 2010-07-06 07:00:06 UTC
See r16967. Rainman said another maintainer should take it, so this bug is filed. My comment in Code Review: The line "if($vCode==$wgContLang->getCode()) continue; // we don't want default variant" doesn't work correctly on zhwiki (and other wikis with $wgLanguageCode = 'zh'), where the language code 'zh' is also used as a variant name (which means 'no conversion'; technically it's a variant). Omitting zh variant causes /zh/Page_Name urls (when $wgArticlePath = '/$2/$1') not to be purged.
Created attachment 7496 [details] vcode
Simply removing that line is ok.
This one has been fixed in r69085.