Index: inline.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline.module,v
retrieving revision 1.19.2.11
diff -u -r1.19.2.11 inline.module
--- inline.module	16 Jan 2008 21:09:02 -0000	1.19.2.11
+++ inline.module	14 Jun 2008 22:21:35 -0000
@@ -82,11 +82,17 @@
     ),
   );
   
+  if (module_exists('imagecache') && function_exists('imagecache_presets')) {
+    $imagecache_path = url('admin/build/imagecache');
+  }
+  else {
+    $imagecache_path = url('admin/settings/imagecache');
+  }
   $form['inline']['upload']['image_scaling'] = array(
     '#type' => 'fieldset',
     '#title' => t('Image dimensions and scaling'),
     '#collapsible' => true,
-    '#description' => (module_exists('imagecache') ? t('Select the <a href="!presets">Imagecache presets</a> to use for inlined images.', array('!presets' => url('admin/settings/imagecache'))) : t('<strong>Note:</strong> If <a href="!imagecache">Imagecache</a> module is installed, Inline provides support for image scaling.', array('!imagecache' => url('http://drupal.org/project/imagecache')))),
+    '#description' => (module_exists('imagecache') ? t('Select the <a href="!presets">Imagecache presets</a> to use for inlined images.', array('!presets' => $imagecache_path)) : t('<strong>Note:</strong> If <a href="!imagecache">Imagecache</a> module is installed, Inline provides support for image scaling.', array('!imagecache' => url('http://drupal.org/project/imagecache')))),
   );
   
   // If Imagecache module exists and is enabled, we assume that we want to use
@@ -94,7 +100,16 @@
   if (module_exists('imagecache')) {
     $options     = array();
     $options[''] = 'No Imagecache processing';
-    $presets     = _imagecache_get_presets();
+    $presets     = array();
+    if (function_exists('imagecache_presets')) {
+      $rules = imagecache_presets();
+      foreach ($rules as $preset_id => $preset_info) {
+        $presets[$preset_id] = $preset_info['presetname'];
+      }
+    }
+    else {
+      $presets = _imagecache_get_presets();
+    }
     foreach ($presets as $id => $name) {
       $options[$name] = $name;
     }

