? imagecache.module.patch
Index: imagecache.module
===================================================================
RCS file: /cvsroot/drupal-common/modules/contrib/imagecache/imagecache.module,v
retrieving revision 1.1.6.7.2.1
diff -u -p -r1.1.6.7.2.1 imagecache.module
--- imagecache.module	31 Aug 2009 14:13:16 -0000	1.1.6.7.2.1
+++ imagecache.module	21 Jan 2010 09:19:58 -0000
@@ -309,16 +309,16 @@ function imagecache_action_definition($a
  *   the visitors browser will not be able to use a previously cached version.
  *   This is
  */
-function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE) {
+function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE, $absolute = FALSE) {
   $path = _imagecache_strip_file_directory($filepath);
   if (module_exists('transliteration')) {
     $path = transliteration_get($path);
   }
 
-  $args = array('absolute' => TRUE, 'query' => empty($bypass_browser_cache) ? NULL : time());
+  $args = array('absolute' => $absolute, 'query' => empty($bypass_browser_cache) ? NULL : time());
   switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) {
     case FILE_DOWNLOADS_PUBLIC:
-      return url($GLOBALS['base_url'] . '/' . file_directory_path() .'/imagecache/'. $presetname .'/'. $path, $args);
+      return url(base_path() . file_directory_path() .'/imagecache/'. $presetname .'/'. $path, $args);
     case FILE_DOWNLOADS_PRIVATE:
       return url('system/files/imagecache/'. $presetname .'/'. $path, $args);
   }
