Changeset 12697
- Timestamp:
- 11/06/08 19:11:46 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/autoload/sfCoreAutoload.class.php
r12676 r12697 28 28 { 29 29 static protected 30 $instance = null; 30 $registered = false, 31 $instance = null; 31 32 32 33 protected … … 60 61 static public function register() 61 62 { 63 if (self::$registered) 64 { 65 return; 66 } 67 62 68 ini_set('unserialize_callback_func', 'spl_autoload_call'); 63 69 if (false === spl_autoload_register(array(self::getInstance(), 'autoload'))) … … 65 71 throw new sfException(sprintf('Unable to register %s::autoload as an autoloading method.', get_class(self::getInstance()))); 66 72 } 73 74 self::$registered = true; 67 75 } 68 76

