Index: includes/imagecache.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/insert/includes/Attic/imagecache.inc,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 imagecache.inc
--- includes/imagecache.inc	27 Jul 2010 04:01:13 -0000	1.2.2.1
+++ includes/imagecache.inc	27 Sep 2010 17:50:36 -0000
@@ -32,7 +32,17 @@ function imagecache_insert_content($item
  * Theme the content that will be inserted for ImageCache presets.
  */
 function template_preprocess_imagecache_insert_image(&$vars) {
-  $vars['filepath'] = imagecache_create_path($vars['preset_name'], $vars['item']['filepath']);
-  $vars['url'] = insert_create_url($vars['filepath']);
+  // This variable has no configuration location. It may be set by placing
+  // $conf['insert_absolute_paths'] = FALSE;
+  // in the site settings.php file, or by manually running variable_set().
+  // For reasons why this might not do what you want and why there's no UI
+  // see http://drupal.org/node/640352.
+  $absolute = variable_get('insert_absolute_paths', TRUE);
+  if ($absolute) {
+    $vars['url'] = imagecache_create_url($vars['preset_name'], $vars['item']['filepath']);
+  }
+  else {
+    $vars['url'] = $GLOBALS['base_path'] . imagecache_create_path($vars['preset_name'], $vars['item']['filepath']);
+  }
   $vars['class'] = !empty($vars['widget']['insert_class']) ? $vars['widget']['insert_class'] : '';
 }
