Changeset 2667 for trunk/system/libraries/Image.php
- Timestamp:
- 05/13/2008 02:23:53 AM (6 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Image.php
r2593 r2667 111 111 // Load the driver 112 112 if ( ! Kohana::auto_load($driver)) 113 throw new Kohana_Exception(' image.driver_not_supported', $this->config['driver']);113 throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 114 114 115 115 // Initialize the driver 116 116 $this->driver = new $driver($this->config['params']); 117 117 118 // Validate the driver 118 119 if ( ! ($this->driver instanceof Image_Driver)) 119 throw new Kohana_Exception(' image.invalid_driver', $driver);120 throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Image_Driver'); 120 121 } 121 122
