Show
Ignore:
Timestamp:
01/21/2008 10:56:43 AM (12 months ago)
Author:
Geert
Message:

Follow-up to r1772:

  • Kohana::auto_load() must not throw exceptions since that would break other attached auto-loaders (e.g. Swift). Thanks for pointing this out, Woody.
  • Now manually loading drivers which has the added speed benefit.
Files:
1 modified

Legend:

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

    r1772 r1773  
    8383                        $driver = 'Payment_'.ucfirst(strtolower($this->config['driver'])).'_Driver'; 
    8484 
    85                         // Manually autoload so that exceptions can be caught 
    86                         Kohana::auto_load($driver); 
     85                        // Manually load so that exceptions can be caught 
     86                        require_once Kohana::find_file('libraries/drivers', substr($driver, 0, -7), TRUE); 
    8787                } 
    8888                catch (Kohana_Exception $e)