When editing a node with a previously uploaded mm file in a cck field, the generated link includes the language prefix. For example, links are to /en/sites/default/files/foo.mp3 instead of /sites/default/files/foo.mp3. The Former results in a 404.

Comments

elplatt’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

This patch fixes the problem. It modifies phptemplate_filefield_file() to use file_create_url() for local paths.