Changeset 1773 for trunk/system/libraries/Image.php
- Timestamp:
- 01/21/2008 10:56:43 AM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Image.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Image.php
r1772 r1773 69 69 $driver = 'Image_'.ucfirst(strtolower($this->config['driver'])).'_Driver'; 70 70 71 // Manually autoload so that exceptions can be caught72 Kohana::auto_load($driver);71 // Manually load so that exceptions can be caught 72 require_once Kohana::find_file('libraries/drivers', substr($driver, 0, -7), TRUE); 73 73 } 74 74 catch (Kohana_Exception $e) … … 80 80 $this->driver = new $driver($this->config['params']); 81 81 82 if ( ! ( $this->driver instanceof Image_Driver))82 if ( ! (self::$driver instanceof Image_Driver)) 83 83 throw new Kohana_Exception('image.invalid_driver', $driver); 84 84 }
