? imagecache/imagecache.module.bak2
Index: imagecache/imagecache.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v
retrieving revision 1.112
diff -u -p -r1.112 imagecache.module
--- imagecache/imagecache.module	7 May 2009 15:15:04 -0000	1.112
+++ imagecache/imagecache.module	23 Jun 2009 22:21:07 -0000
@@ -409,7 +409,7 @@ function _imagecache_cache($presetname, 
 
   // Bail if the requested file isn't an image you can't request .php files
   // etc...
-  if (!getimagesize($src)) {
+  if (!imageapi_get_info($src)) {
     watchdog('imagecache', '403: File is not an image %image ', array('%image' => $src), WATCHDOG_ERROR);
     header('HTTP/1.0 403 Forbidden');
     exit;
@@ -827,7 +827,7 @@ function theme_imagecache($presetname, $
   if (is_null($attributes)) {
     $attributes = array('class' => 'imagecache imagecache-'. $presetname);
   }
-  if ($getsize && ($image = image_get_info(imagecache_create_path($presetname, $path)))) {
+  if ($getsize && ($image = imageapi_get_info(imagecache_create_path($presetname, $path)))) {
     $attributes['width'] = $image['width'];
     $attributes['height'] = $image['height'];
   }
