diff --git a/public_html/sites/all/modules/contrib/imagecache/imagecache.module b/public_html/sites/all/modules/contrib/imagecache/imagecache.module index 8bb3c2c..6c67012 100644 --- a/public_html/sites/all/modules/contrib/imagecache/imagecache.module +++ b/public_html/sites/all/modules/contrib/imagecache/imagecache.module @@ -340,8 +340,13 @@ function imagecache_action_definition($action) { * @param $absolute * A Boolean indicating that the URL should be absolute. Defaults to TRUE. */ -function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE, $absolute = TRUE) { - $args = array('query' => empty($bypass_browser_cache) ? NULL : time()); +function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE, $absolute = TRUE) { + $args = array( + 'query' => empty($bypass_browser_cache) ? NULL : time(), + // We want to avoid having language_url_rewrite() prefix the path with the + // language code, but preserve the domain rewriting. + 'language' => (object) array('language' => '', 'domain' => $GLOBALS['language']->domain), + ); $file_directory = file_directory_path(); // Determine the path of the derivative inside the files directory.