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.

CommentFileSizeAuthor
pubdlcnt.module.diff176 bytesinsooth

Comments

pixture’s picture

Thanks for the patch. I will add this to the next release. :-)

pixture’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta4
Assigned: Unassigned » pixture
Status: Patch (to be ported) » Fixed

Patch was commited to beta4 and Dev tree.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.