I used language_negotiation option at Locale module configuration page to set to "none" (LANGUAGE_NEGOTIATION_NONE) on my site. Public Download Count doesn't include this settings when adding language prefix as in _language_prefix(), line 30, file pubdlcnt.module (both versions: 6.x-1.0-beta3 and 6.x-1.x-dev). Here is the code that solves this issue (only line 30 showed):
if ($language->prefix != '' && variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE) != LANGUAGE_NEGOTIATION_NONE) {
Attached diff output for pubdlcnt.module, version 6.x-1.x-dev, 2009-Jul-15.
| Comment | File | Size | Author |
|---|---|---|---|
| pubdlcnt.module.diff | 176 bytes | insooth |
Comments
Comment #1
pixture commentedThanks for the patch. I will add this to the next release. :-)
Comment #2
pixture commentedPatch was commited to beta4 and Dev tree.