Changeset 8761
- Timestamp:
- 05/04/08 09:11:42 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/config/sfGeneratorConfigHandler.class.php
r7831 r8761 66 66 $generatorParam = (isset($config['param']) ? $config['param'] : array()); 67 67 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); 70 70 $generatorParam['moduleName'] = $match[1]; 71 71