Development

Changeset 6607

You must first sign up to be able to contribute.

Changeset 6607

Show
Ignore:
Timestamp:
12/20/07 11:16:56 (1 year ago)
Author:
fabien
Message:

fixed incorrect use of sfConfigCache:checkConfig(..., true) (closes #2123)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/action/sfAction.class.php

    r3624 r6607  
    3636 
    3737    // include security configuration 
    38     require(sfConfigCache::getInstance()->checkConfig(sfConfig::get('sf_app_module_dir_name').'/'.$this->getModuleName().'/'.sfConfig::get('sf_app_module_config_dir_name').'/security.yml', true)); 
     38    if ($file = sfConfigCache::getInstance()->checkConfig(sfConfig::get('sf_app_module_dir_name').'/'.$this->getModuleName().'/'.sfConfig::get('sf_app_module_config_dir_name').'/security.yml', true)) 
     39    { 
     40      require $file; 
     41    } 
    3942 
    4043    return true;