My drupal instance is set :
- to serve files using the private file transfert,
- to use prefixes for all active languages.

French is default and use "fr" and English use "en".

file_create_url('sites/default/files/test.png') returns 'fr/system/files/test.png' instead of 'system/files/test.png'

There is a patch to fix this bug. I hope there won't be side effects.

Comments

Status: Needs review » Needs work

The last submitted patch, Durpal-6.19-file-l10n.patch, failed testing.

duaelfr’s picture

StatusFileSize
new534 bytes

It was my first patch...
Lets try again !

duaelfr’s picture

StatusFileSize
new534 bytes

Do this rely on file name ?
Another try...

duaelfr’s picture

Status: Needs work » Closed (works as designed)

Seems to