Development

Changeset 9674

You must first sign up to be able to contribute.

Changeset 9674

Show
Ignore:
Timestamp:
06/19/08 15:34:15 (5 years ago)
Author:
fabien
Message:

fixed custom schema for plugins are not found in Win32 environments (closes #3769)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php

    r9609 r9674  
    115115      } 
    116116 
    117       $customSchemaFilename = str_replace(array(sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR, 'plugins'.DIRECTORY_SEPARATOR, 'config'.DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, 'schema.yml'), array('', '', '', '_', 'schema.custom.yml'), $schema); 
     117      $customSchemaFilename = str_replace(array( 
     118        str_replace(DIRECTORY_SEPARATOR, '/', sfConfig::get('sf_root_dir')).'/', 
     119        'plugins/', 
     120        'config/', 
     121        '/', 
     122        'schema.yml' 
     123      ), array('', '', '', '_', 'schema.custom.yml'), $schema); 
    118124      $customSchemas = sfFinder::type('file')->name($customSchemaFilename)->in($dirs); 
    119125