Changeset 1774
- Timestamp:
- 01/21/2008 10:59:46 AM (9 months ago)
- Location:
- trunk/system/libraries
- Files:
-
- 4 modified
-
Archive.php (modified) (1 diff)
-
Cache.php (modified) (1 diff)
-
Database.php (modified) (1 diff)
-
Image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Archive.php
r1773 r1774 46 46 47 47 // Validate the driver 48 if ( ! ( self::$driver instanceof Archive_Driver))48 if ( ! ($this->driver instanceof Archive_Driver)) 49 49 throw new Kohana_Exception('archive.driver_implements', $type); 50 50 -
trunk/system/libraries/Cache.php
r1773 r1774 51 51 52 52 // Validate the driver 53 if ( ! ( self::$driver instanceof Cache_Driver))53 if ( ! ($this->driver instanceof Cache_Driver)) 54 54 throw new Kohana_Exception('cache.driver_not_supported', 'Cache drivers must use the Cache_Driver interface.'); 55 55 -
trunk/system/libraries/Database.php
r1773 r1774 169 169 170 170 // Validate the driver 171 if ( ! ( self::$driver instanceof Database_Driver))171 if ( ! ($this->driver instanceof Database_Driver)) 172 172 throw new Kohana_Exception('database.driver_not_supported', 'Database drivers must use the Database_Driver interface.'); 173 173 -
trunk/system/libraries/Image.php
r1773 r1774 80 80 $this->driver = new $driver($this->config['params']); 81 81 82 if ( ! ( self::$driver instanceof Image_Driver))82 if ( ! ($this->driver instanceof Image_Driver)) 83 83 throw new Kohana_Exception('image.invalid_driver', $driver); 84 84 }
