Changeset 5868
- Timestamp:
- 11/05/07 14:38:56 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/plugins/sfPropelPlugin/lib/propel/sfPropel.class.php
r5815 r5868 27 27 $defaultCulture = 'en'; 28 28 29 static public function initialize(sfEventDispatcher $dispatcher, $culture )29 static public function initialize(sfEventDispatcher $dispatcher, $culture = null) 30 30 { 31 31 $dispatcher->connect('user.change_culture', array('sfPropel', 'listenToChangeCultureEvent')); 32 32 33 self::setDefaultCulture($culture); 33 if (!is_null($culture)) 34 { 35 self::setDefaultCulture($culture); 36 } 34 37 } 35 38 trunk/lib/plugins/sfPropelPlugin/lib/propel/sfPropelAutoload.php
r5815 r5868 34 34 Propel::initialize(); 35 35 36 sfPropel::initialize($dispatcher , sfContext::getInstance()->getUser()->getCulture());36 sfPropel::initialize($dispatcher);