Skip to content

Commit

Permalink
Update Diacritics mapping config path. (#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung authored Jan 23, 2024
1 parent d54e224 commit 3094418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function processField($field)
case 'mappings':
$file = $this->form->getValue('mappings');

$diacriticsMappingPath = sfConfig::get('sf_config_dir').DIRECTORY_SEPARATOR.'diacritics_mapping.yml';
$diacriticsMappingPath = sfConfig::get('sf_upload_dir').DIRECTORY_SEPARATOR.'diacritics_mapping.yml';

if (null !== $file) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ public function loadDiacriticsMappings()
$diacriticsFinder = sfFinder::type('file')->name('diacritics_mapping.yml');
$diacriticsFiles = array_unique(
array_merge(
$diacriticsFinder->in(sfConfig::get('sf_config_dir')),
$diacriticsFinder->in(ProjectConfiguration::getActive()->getPluginSubPaths('/config'))
$diacriticsFinder->in(sfConfig::get('sf_upload_dir')),
)
);

Expand Down

0 comments on commit 3094418

Please sign in to comment.