diff --git public_html/sites/all/modules/contrib/imagecache/imagecache.module public_html/sites/all/modules/contrib/imagecache/imagecache.module index 5a44163..245dfbc 100644 --- public_html/sites/all/modules/contrib/imagecache/imagecache.module +++ public_html/sites/all/modules/contrib/imagecache/imagecache.module @@ -311,8 +311,15 @@ function imagecache_action_definition($action) { */ function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE) { $path = _imagecache_strip_file_directory($filepath); - if (module_exists('transliteration')) { - $path = transliteration_get($path); + + // Clean up Windows paths. + $old_path = $path = str_replace('\\', '/', $path); + + drupal_alter('file_url', $path); + + // If any module has altered the path, then return the alteration. + if ($path != $old_path) { + return $path; } $args = array('absolute' => TRUE, 'query' => empty($bypass_browser_cache) ? NULL : time());