Development

#1561: sfGeneratorConfigHandler.class.php.patch

You must first sign up to be able to contribute.

Ticket #1561: sfGeneratorConfigHandler.class.php.patch

File sfGeneratorConfigHandler.class.php.patch, 0.7 kB (added by blerou, 4 years ago)
  • sfGeneratorConfigHandler.class.php

    old new  
    6666    $generatorParam = (isset($config['param']) ? $config['param'] : array()); 
    6767 
    6868    // hack to find the module name 
    69     preg_match('#'.sfConfig::get('sf_app_module_dir_name').'/([^/]+)/#', $configFiles[0], $match); 
     69    preg_match('#'.sfConfig::get('sf_app_module_dir_name').'/([^/]+)/#', $configFiles[1], $match); 
    7070    $generatorParam['moduleName'] = $match[1]; 
    7171 
    7272    $data = $generatorManager->generate($config['class'], $generatorParam);