Show
Ignore:
Timestamp:
05/13/2008 02:23:53 AM (6 months ago)
Author:
Geert
Message:

Follow-up to r2628. Using generic i18n messages for loading of drivers.

Files:
1 modified

Legend:

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

    r2593 r2667  
    111111                // Load the driver 
    112112                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)); 
    114114 
    115115                // Initialize the driver 
    116116                $this->driver = new $driver($this->config['params']); 
    117117 
     118                // Validate the driver 
    118119                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'); 
    120121        } 
    121122