Changeset 1772 for trunk/system/libraries/Archive.php
- Timestamp:
- 01/21/2008 10:33:19 AM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Archive.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
