Changeset 1772
- Timestamp:
- 01/21/2008 10:33:19 AM (9 months ago)
- Location:
- trunk/system
- Files:
-
- 13 modified
-
core/Kohana.php (modified) (1 diff)
-
i18n/en_US/archive.php (modified) (1 diff)
-
i18n/en_US/cache.php (modified) (1 diff)
-
i18n/en_US/database.php (modified) (1 diff)
-
i18n/en_US/image.php (modified) (1 diff)
-
i18n/en_US/payment.php (modified) (1 diff)
-
i18n/en_US/session.php (modified) (1 diff)
-
libraries/Archive.php (modified) (2 diffs)
-
libraries/Cache.php (modified) (2 diffs)
-
libraries/Database.php (modified) (2 diffs)
-
libraries/Image.php (modified) (2 diffs)
-
libraries/Payment.php (modified) (1 diff)
-
libraries/Session.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r1762 r1772 597 597 598 598 // If the file doesn't exist, just return 599 if (($filepath = self::find_file($type, $file )) === FALSE)599 if (($filepath = self::find_file($type, $file, TRUE)) === FALSE) 600 600 return; 601 601 -
trunk/system/i18n/en_US/archive.php
r1297 r1772 3 3 $lang = array 4 4 ( 5 'driver_not_supported' => 'The requested Archive driver, %s, is not supported.',5 'driver_not_supported' => 'The requested Archive driver, %s, was not found.', 6 6 'driver_implements' => 'The requested Archive driver, %s, does not implement Archive_Driver.', 7 7 'directory_unwritable' => 'The directory you requested to save the file in, %s, is unwritable. Please correct the permissions and try again.', -
trunk/system/i18n/en_US/cache.php
r1748 r1772 3 3 $lang = array 4 4 ( 5 'driver_not_supported' => 'The %s cache driver does not exist.',5 'driver_not_supported' => 'The requested Cache driver, %s, was not found.', 6 6 'extension_not_loaded' => 'The %s PHP extension must be loaded to use this driver.', 7 7 'unwritable' => 'The configured storage location, <tt>%s</tt>, is not writable.', -
trunk/system/i18n/en_US/database.php
r1522 r1772 6 6 'error' => 'There was an SQL error: %s', 7 7 'connection' => 'There was an error connecting to the database: %s', 8 'driver_not_supported' => 'The %s database driver does not exist.',8 'driver_not_supported' => 'The requested Database driver, %s, was not found.', 9 9 'invalid_dsn' => 'The DSN you supplied is not valid: %s', 10 10 'must_use_set' => 'You must set a SET clause for your query.', -
trunk/system/i18n/en_US/image.php
r1766 r1772 3 3 $lang = array 4 4 ( 5 'driver_not_supported' => 'The %s image driver does not exist.',5 'driver_not_supported' => 'The requested Image driver, %s, was not found.', 6 6 7 7 // CI's Image_lib stuff below -
trunk/system/i18n/en_US/payment.php
r1600 r1772 3 3 $lang = array 4 4 ( 5 'required' => 'Some required fields were not supplied: %s', 5 'driver_not_supported' => 'The requested Payment driver, %s, was not found.', 6 'required' => 'Some required fields were not supplied: %s', 6 7 'gateway_connection_error' => 'An error occured connecting to the payment gateway. please contact the webmaster if this problem persists.', 7 'invalid_certificate' => 'The certificate file is invalid: %s',8 'no_dlib' => 'Could not load the dynamic library: %s',9 'error' => 'There was an error processing the transaction: %s',8 'invalid_certificate' => 'The certificate file is invalid: %s', 9 'no_dlib' => 'Could not load the dynamic library: %s', 10 'error' => 'There was an error processing the transaction: %s', 10 11 ); -
trunk/system/i18n/en_US/session.php
r1522 r1772 4 4 ( 5 5 'no_table' => 'The configured session table, %s, was not found.', 6 'driver_not_supported' => 'The requested session driver, %s, was not found.',6 'driver_not_supported' => 'The requested Session driver, %s, was not found.', 7 7 'driver_must_implement_interface' => 'Session drivers must implement the Session_Driver interface.' 8 8 ); -
trunk/system/libraries/Archive.php
r1481 r1772 32 32 { 33 33 // Set driver name 34 $driver = 'Archive_'.ucfirst( $type).'_Driver';34 $driver = 'Archive_'.ucfirst(strtolower($type)).'_Driver'; 35 35 36 // Manually call auto-loading, for proper exception handling36 // Manually autoload so that exceptions can be caught 37 37 Kohana::auto_load($driver); 38 39 // Initialize the driver40 $this->driver = new $driver();41 38 } 42 39 catch (Kohana_Exception $exception) … … 44 41 throw new Kohana_Exception('archive.driver_not_supported', $type); 45 42 } 43 44 // Initialize the driver 45 $this->driver = new $driver(); 46 46 47 47 // Validate the driver -
trunk/system/libraries/Cache.php
r1695 r1772 36 36 try 37 37 { 38 $driver = 'Cache_'.ucfirst($this->config['driver']).'_Driver'; 38 // Set driver name 39 $driver = 'Cache_'.ucfirst(strtolower($this->config['driver'])).'_Driver'; 39 40 40 41 // Manually autoload so that exceptions can be caught … … 43 44 catch (Kohana_Exception $e) 44 45 { 45 // Driver was not found46 46 throw new Kohana_Exception('cache.driver_not_supported', $this->config['driver']); 47 47 } -
trunk/system/libraries/Database.php
r1719 r1772 155 155 { 156 156 // Set driver name 157 $driver = 'Database_'.ucfirst( $this->config['connection']['type']).'_Driver';158 159 // Manually call auto-loading, for proper exception handling157 $driver = 'Database_'.ucfirst(strtolower($this->config['connection']['type'])).'_Driver'; 158 159 // Manually autoload so that exceptions can be caught 160 160 Kohana::auto_load($driver); 161 162 // Initialize the driver163 $this->driver = new $driver($this->config);164 161 } 165 162 catch (Kohana_Exception $e) … … 167 164 throw new Kohana_Database_Exception('database.driver_not_supported', $this->config['connection']['type']); 168 165 } 166 167 // Initialize the driver 168 $this->driver = new $driver($this->config); 169 169 170 170 // Validate the driver -
trunk/system/libraries/Image.php
r1565 r1772 66 66 try 67 67 { 68 // Create the driver classname69 $driver = 'Image_'.ucfirst( $this->config['driver']).'_Driver';68 // Set driver name 69 $driver = 'Image_'.ucfirst(strtolower($this->config['driver'])).'_Driver'; 70 70 71 71 // Manually autoload so that exceptions can be caught … … 74 74 catch (Kohana_Exception $e) 75 75 { 76 // Driver was not found 77 throw new Kohana_Exception('cache.driver_not_supported', $this->config['driver']); 76 throw new Kohana_Exception('image.driver_not_supported', $this->config['driver']); 78 77 } 79 78 -
trunk/system/libraries/Payment.php
r1766 r1772 78 78 $this->config = array_merge($this->config, Config::item('payment.'.$this->config['driver'])); 79 79 80 // Set driver name 81 $driver = 'Payment_'.ucfirst($this->config['driver']).'_Driver'; 80 try 81 { 82 // Set driver name 83 $driver = 'Payment_'.ucfirst(strtolower($this->config['driver'])).'_Driver'; 82 84 83 // Manually call auto-loading, for proper exception handling 84 Kohana::auto_load($driver); 85 // Manually autoload so that exceptions can be caught 86 Kohana::auto_load($driver); 87 } 88 catch (Kohana_Exception $e) 89 { 90 throw new Kohana_Exception('payment.driver_not_supported', $this->config['driver']); 91 } 85 92 86 93 // Initialize the driver -
trunk/system/libraries/Session.php
r1745 r1772 58 58 try 59 59 { 60 // Set thedriver name60 // Set driver name 61 61 $driver = 'Session_'.ucfirst(strtolower(self::$config['driver'])).'_Driver'; 62 62 63 // Manually call auto-loading, for proper exception handling63 // Manually autoload so that exceptions can be caught 64 64 Kohana::auto_load($driver); 65 65 }
