summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew morton2009-05-07 15:09:33 (GMT)
committer andrew morton2009-05-07 15:09:33 (GMT)
commit9668e494aca5f53099e03f2af1466ffc871e27ac (patch)
tree30d973707f73c3b0a4759fd07e306789ca4775c4
parent6622cb5e8d4a89fe0c6cd0e0a28013aaa3a3557b (diff)
#347566 by Bevan: Require transliteration module.
#357569 by smitty/thePanz/drewish: Add support for transliteration in the module.
-rw-r--r--imagecache.info1
-rw-r--r--imagecache.module3
2 files changed, 4 insertions, 0 deletions
diff --git a/imagecache.info b/imagecache.info
index 22a151c..0b3034a 100644
--- a/imagecache.info
+++ b/imagecache.info
@@ -3,3 +3,4 @@ name = ImageCache
description = Dynamic image manipulator and cache.
package = ImageCache
dependencies = imageapi
+dependencies = transliteration
diff --git a/imagecache.module b/imagecache.module
index fc73f5d..dd6dae8 100644
--- a/imagecache.module
+++ b/imagecache.module
@@ -214,6 +214,9 @@ 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);
+ }
$query = $bypass_browser_cache ? time() : $bypass_browser_cache;
switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) {
case FILE_DOWNLOADS_PUBLIC: