Changeset 11923
- Timestamp:
- 10/03/08 15:46:30 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/task/generator/sfGenerateModuleTask.class.php
r8514 r11923 71 71 72 72 // Validate the module name 73 if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $ app))73 if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $module)) 74 74 { 75 throw new sfCommandException(sprintf('The module name "%s" is invalid.', $ app));75 throw new sfCommandException(sprintf('The module name "%s" is invalid.', $module)); 76 76 } 77 77 branches/1.2/lib/task/generator/sfGenerateModuleTask.class.php
r8514 r11923 71 71 72 72 // Validate the module name 73 if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $ app))73 if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $module)) 74 74 { 75 throw new sfCommandException(sprintf('The module name "%s" is invalid.', $ app));75 throw new sfCommandException(sprintf('The module name "%s" is invalid.', $module)); 76 76 } 77 77