Development

Changeset 5868

You must first sign up to be able to contribute.

Changeset 5868

Show
Ignore:
Timestamp:
11/05/07 14:38:56 (1 year ago)
Author:
fabien
Message:

fixed sfPropel initialization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/plugins/sfPropelPlugin/lib/propel/sfPropel.class.php

    r5815 r5868  
    2727    $defaultCulture = 'en'; 
    2828 
    29   static public function initialize(sfEventDispatcher $dispatcher, $culture
     29  static public function initialize(sfEventDispatcher $dispatcher, $culture = null
    3030  { 
    3131    $dispatcher->connect('user.change_culture', array('sfPropel', 'listenToChangeCultureEvent')); 
    3232 
    33     self::setDefaultCulture($culture); 
     33    if (!is_null($culture)) 
     34    { 
     35      self::setDefaultCulture($culture); 
     36    } 
    3437  } 
    3538 
  • trunk/lib/plugins/sfPropelPlugin/lib/propel/sfPropelAutoload.php

    r5815 r5868  
    3434Propel::initialize(); 
    3535 
    36 sfPropel::initialize($dispatcher, sfContext::getInstance()->getUser()->getCulture()); 
     36sfPropel::initialize($dispatcher);