Hi,

how to reproduce:
* enable the option "Display image with a link to the image file"
* enable the multilingual system with the setting "All content. No language conditions apply."

The inline images are visible (as expected).
But the link to the image file contains an additional language prefix and thus returns a "404 - not found" error.

Wrong (current state):
http://example.com/en/sites/example.com/files/bar.png
Correct:
http://example.com/sites/example.com/files/bar.png

thanks for this useful module!
cheers,
Lars

Comments

martijn houtman’s picture

It's related to this: http://drupal.org/node/540692

What I did is copy the theme_inline_img function, and change the line that creates the inline link to:

  ...
  $html = l($image, $file->filepath, array('language' => array(), 'attributes' => $attributes, 'html' => TRUE));
  ...

I.e., setting an empty language. Not exactly sure how to do a proper fix.