Development

Changeset 8761

You must first sign up to be able to contribute.

Changeset 8761

Show
Ignore:
Timestamp:
05/04/08 09:11:42 (5 months ago)
Author:
fabien
Message:

fixed sfGeneratorConfigHandler: Bug if /modules/ is part of the project path (closes #3429)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/config/sfGeneratorConfigHandler.class.php

    r7831 r8761  
    6666    $generatorParam = (isset($config['param']) ? $config['param'] : array()); 
    6767 
    68     // hack to find the module name 
    69     preg_match('#'.sfConfig::get('sf_app_module_dir_name').'/([^/]+)/#', $configFiles[0], $match); 
     68    // hack to find the module name (look for the last /modules/ in path) 
     69    preg_match('#.*/'.sfConfig::get('sf_app_module_dir_name').'/([^/]+)/#', $configFiles[0], $match); 
    7070    $generatorParam['moduleName'] = $match[1]; 
    7171