[limb-svn] r7079 - 3.x/trunk/limb/imagekit/src

svn at limb-project.com svn at limb-project.com
Wed Jun 25 20:32:38 MSD 2008


Author: korchasa
Date: 2008-06-25 20:32:37 +0400 (Wed, 25 Jun 2008)
New Revision: 7079
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7079

Modified:
   3.x/trunk/limb/imagekit/src/lmbImageKit.class.php
Log:
-- replace file_exist for autoloader exception rethrow

Modified: 3.x/trunk/limb/imagekit/src/lmbImageKit.class.php
===================================================================
--- 3.x/trunk/limb/imagekit/src/lmbImageKit.class.php	2008-06-25 16:20:21 UTC (rev 7078)
+++ 3.x/trunk/limb/imagekit/src/lmbImageKit.class.php	2008-06-25 16:32:37 UTC (rev 7079)
@@ -23,12 +23,15 @@
 
     $class_path = 'limb/imagekit/src/' .  $library . '/' . $image_class_name . '.class.php';
 
-    if(!file_exists($class_path))
-      throw new lmbFileNotFoundException($class_path, 'image library not found');
-
     lmb_require($class_path);
 
-    return new $image_class_name($params);
+    try {
+      $convertor = new $image_class_name($params);
+    }
+    catch (lmbException $e)
+    {
+      throw new lmbFileNotFoundException($class_path, 'image library not found');
+    }
   }
 
   static function load($file_name, $type = '', $library = 'gd', $dir = '', $params = array())



More information about the limb-svn mailing list