Changeset 1774

Show
Ignore:
Timestamp:
01/21/2008 10:59:46 AM (9 months ago)
Author:
Geert
Message:

Oops, that's better.

Location:
trunk/system/libraries
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Archive.php

    r1773 r1774  
    4646 
    4747                // Validate the driver 
    48                 if ( ! (self::$driver instanceof Archive_Driver)) 
     48                if ( ! ($this->driver instanceof Archive_Driver)) 
    4949                        throw new Kohana_Exception('archive.driver_implements', $type); 
    5050 
  • trunk/system/libraries/Cache.php

    r1773 r1774  
    5151 
    5252                // Validate the driver 
    53                 if ( ! (self::$driver instanceof Cache_Driver)) 
     53                if ( ! ($this->driver instanceof Cache_Driver)) 
    5454                        throw new Kohana_Exception('cache.driver_not_supported', 'Cache drivers must use the Cache_Driver interface.'); 
    5555 
  • trunk/system/libraries/Database.php

    r1773 r1774  
    169169 
    170170                // Validate the driver 
    171                 if ( ! (self::$driver instanceof Database_Driver)) 
     171                if ( ! ($this->driver instanceof Database_Driver)) 
    172172                        throw new Kohana_Exception('database.driver_not_supported', 'Database drivers must use the Database_Driver interface.'); 
    173173 
  • trunk/system/libraries/Image.php

    r1773 r1774  
    8080                $this->driver = new $driver($this->config['params']); 
    8181 
    82                 if ( ! (self::$driver instanceof Image_Driver)) 
     82                if ( ! ($this->driver instanceof Image_Driver)) 
    8383                        throw new Kohana_Exception('image.invalid_driver', $driver); 
    8484        }