Index: asset_wizard.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/asset/Attic/asset_wizard.inc,v
retrieving revision 1.1.2.10
diff -u -u -p -r1.1.2.10 asset_wizard.inc
--- asset_wizard.inc	18 Feb 2008 19:02:17 -0000	1.1.2.10
+++ asset_wizard.inc	21 Apr 2008 01:52:12 -0000
@@ -279,7 +279,7 @@ function asset_wizard_form($form_values 
       // Preview the image
       if(in_array($a->extension, $is_image)) {
         if(variable_get('asset_imagecache', 0)) {
-          $presets = _imagecache_get_presets();
+          $presets = function_exists('_imagecache_get_presets') ? _imagecache_get_presets() : imagecache_presets();
           $preset = $presets[variable_get('asset_imagecache', 0)];
           $preview = theme('imagecache', $preset, str_replace("//","/", $a->filepath));
         }
@@ -659,7 +659,7 @@ function asset_wizard_form_validate($for
     // Preview the image
     if(in_array($a->extension, $is_image)) {
       if(variable_get('asset_imagecache', 0)) {
-        $presets = _imagecache_get_presets();
+        $presets = function_exists('_imagecache_get_presets') ? _imagecache_get_presets() : imagecache_presets();
         $preset = $presets[variable_get('asset_imagecache', 0)];
         $preview = theme('imagecache', $preset, str_replace("//","/", $a->filepath));
       }
Index: modules/asset_content.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/asset/modules/asset_content.inc,v
retrieving revision 1.1.2.4
diff -u -u -p -r1.1.2.4 asset_content.inc
--- modules/asset_content.inc	29 Jan 2008 21:31:47 -0000	1.1.2.4
+++ modules/asset_content.inc	21 Apr 2008 01:52:17 -0000
@@ -179,7 +179,7 @@ function asset_widget($op, &$node, $fiel
           // Preview the image
           if(in_array($a->extension, $is_image)) {
             if(variable_get('asset_imagecache', 0)) {
-              $presets = _imagecache_get_presets();
+              $presets = function_exists('_imagecache_get_presets') ? _imagecache_get_presets() : imagecache_presets();
               $preset = $presets[variable_get('asset_imagecache', 0)];
               $preview = theme('imagecache', $preset, str_replace("//","/", $a->filepath));
             }
@@ -337,7 +337,7 @@ function _asset_widget_form(&$form_item,
     // Preview the image
     if(in_array($a->extension, $is_image)) {
       if(variable_get('asset_imagecache', 0)) {
-        $presets = _imagecache_get_presets();
+        $presets = function_exists('_imagecache_get_presets') ? _imagecache_get_presets() : imagecache_presets();
         $preset = $presets[variable_get('asset_imagecache', 0)];
         $preview = theme('imagecache', $preset, str_replace("//","/", $a->filepath));
       }
Index: modules/asset_imagecache.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/asset/modules/asset_imagecache.inc,v
retrieving revision 1.1.2.2
diff -u -u -p -r1.1.2.2 asset_imagecache.inc
--- modules/asset_imagecache.inc	5 Feb 2008 15:58:20 -0000	1.1.2.2
+++ modules/asset_imagecache.inc	21 Apr 2008 01:52:17 -0000
@@ -2,7 +2,7 @@
 
 function imagecache_asset_settings(){
   $form[] = array('#value' => '<p>Select which imagecache presets should be available to use as asset formatters.</p>');
-  $presets = _imagecache_get_presets();
+  $presets = function_exists('_imagecache_get_presets') ? _imagecache_get_presets() : imagecache_presets();
   foreach($presets as $id=>$name){
     $formats[$name] = array(
       'name' => $name . ' (imagecache)',
@@ -21,7 +21,7 @@ function imagecache_asset_settings(){
 function imagecache_asset_formatter($op='info',$asset=null,$attr=array()){
   switch($op){
     case 'info':
-      $presets = _imagecache_get_presets();
+      $presets = function_exists('_imagecache_get_presets') ? _imagecache_get_presets() : imagecache_presets();
       foreach($presets as $id=>$name){
         if(variable_get('asset_imagecache_preset_'.$id, 1)){
           $formats[$name] = array(
@@ -64,7 +64,7 @@ function imagecache_asset_formatter($op=
 }
 
 function _imagecache_asset_description($preset_id){
-  $actions = _imagecache_actions_get_by_presetid($preset_id);
+  $actions = function_exists('_imagecache_actions_get_by_preset') ? _imagecache_actions_get_by_presetid($preset_id) : imagecache_preset_actions($preset_id);
   foreach($actions as $action){
     switch($action['data']['function']){
       case 'scale':
@@ -92,7 +92,7 @@ function _imagecache_asset_description($
 
 function _asset_imagecache_get_size($name,$path){
   $preset = _imagecache_preset_load_by_name($name);
-  $actions = _imagecache_actions_get_by_presetid($preset);
+  $actions = function_exists('_imagecache_actions_get_by_preset') ? _imagecache_actions_get_by_presetid($preset_id) : imagecache_preset_actions($preset_id);
   $action = array_pop($actions);
   $rule = $action['data'];
   
