Development

Changeset 8762

You must first sign up to be able to contribute.

Changeset 8762

Show
Ignore:
Timestamp:
05/04/08 09:11:55 (1 year 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.1/lib/config/sfGeneratorConfigHandler.class.php

    r8417 r8762  
    6565    $generatorParam = (isset($config['param']) ? $config['param'] : array()); 
    6666 
    67     // hack to find the module name 
    68     preg_match('#modules/([^/]+)/#', $configFiles[0], $match); 
     67    // hack to find the module name (look for the last /modules/ in path) 
     68    preg_match('#.*/modules/([^/]+)/#', $configFiles[0], $match); 
    6969    $generatorParam['moduleName'] = $match[1]; 
    7070 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.