Author: fabien
Date: 2010-03-03 15:46:07 +0100 (Wed, 03 Mar 2010)
New Revision: 28366
Modified:
branches/1.3/lib/config/sfGeneratorConfigHandler.class.php
branches/1.4/lib/config/sfGeneratorConfigHandler.class.php
Log:
[1.3, 1.4] fixed sfGeneratorConfigHandler.class.php doesn't work with Windows
path (closes #8301)
Modified: branches/1.3/lib/config/sfGeneratorConfigHandler.class.php
===================================================================
--- branches/1.3/lib/config/sfGeneratorConfigHandler.class.php 2010-03-03
14:42:10 UTC (rev 28365)
+++ branches/1.3/lib/config/sfGeneratorConfigHandler.class.php 2010-03-03
14:46:07 UTC (rev 28366)
@@ -65,7 +65,7 @@
$generatorParam = (isset($config['param']) ? $config['param'] : array());
// hack to find the module name (look for the last /modules/ in path)
- preg_match('#.*/modules/([^/]+)/#', $configFiles[0], $match);
+ preg_match('#.*/modules/([^/]+)/#', str_replace('\\', '/',
$configFiles[0]), $match);
$generatorParam['moduleName'] = $match[1];
// compile data
Modified: branches/1.4/lib/config/sfGeneratorConfigHandler.class.php
===================================================================
--- branches/1.4/lib/config/sfGeneratorConfigHandler.class.php 2010-03-03
14:42:10 UTC (rev 28365)
+++ branches/1.4/lib/config/sfGeneratorConfigHandler.class.php 2010-03-03
14:46:07 UTC (rev 28366)
@@ -65,7 +65,7 @@
$generatorParam = (isset($config['param']) ? $config['param'] : array());
// hack to find the module name (look for the last /modules/ in path)
- preg_match('#.*/modules/([^/]+)/#', $configFiles[0], $match);
+ preg_match('#.*/modules/([^/]+)/#', str_replace('\\', '/',
$configFiles[0]), $match);
$generatorParam['moduleName'] = $match[1];
// compile data
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.