Development

Changeset 11923

You must first sign up to be able to contribute.

Changeset 11923

Show
Ignore:
Timestamp:
10/03/08 15:46:30 (6 years ago)
Author:
fabien
Message:

[1.1, 1.2] fixed typo (closes #4563)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/generator/sfGenerateModuleTask.class.php

    r8514 r11923  
    7171 
    7272    // 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)) 
    7474    { 
    75       throw new sfCommandException(sprintf('The module name "%s" is invalid.', $app)); 
     75      throw new sfCommandException(sprintf('The module name "%s" is invalid.', $module)); 
    7676    } 
    7777 
  • branches/1.2/lib/task/generator/sfGenerateModuleTask.class.php

    r8514 r11923  
    7171 
    7272    // 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)) 
    7474    { 
    75       throw new sfCommandException(sprintf('The module name "%s" is invalid.', $app)); 
     75      throw new sfCommandException(sprintf('The module name "%s" is invalid.', $module)); 
    7676    } 
    7777