Development

Changeset 8388

You must first sign up to be able to contribute.

Changeset 8388

Show
Ignore:
Timestamp:
04/10/08 16:27:41 (6 months ago)
Author:
fabien
Message:

fixed problem with generated config_factories.yml.php file (in cache). (closes #3292)

Files:

Legend:

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

    r8296 r8388  
    2828      self::setDefaultCulture($culture); 
    2929    } 
    30     else if (class_exists('sfContext', false) && sfContext::hasInstance()
     30    else if (class_exists('sfContext', false) && sfContext::hasInstance() && $user = sfContext::getInstance()->getUser()
    3131    { 
    32       self::setDefaultCulture(sfContext::getInstance()->getUser()->getCulture()); 
     32      self::setDefaultCulture($user->getCulture()); 
    3333    } 
    3434  }