Skip to content

Commit

Permalink
Fix diacritics typo. (#1813) (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung authored May 14, 2024
1 parent 9ccebe5 commit 1da71a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ protected function processField($field)
} catch (Exception $e) {
QubitSetting::findAndSave('diacritics', 0, ['sourceCulture' => true]);
unlink($diacriticsMappingPath);
$this->getUser()->setFlash('error', $this->context->i18n->__('Unable to upload diacritis mapping yaml file.'));
$this->getUser()->setFlash('error', $this->context->i18n->__('Unable to upload diacritics mapping yaml file.'));
unset($this->updateMessage);
}
} else {
// Reset diacritics settings when uploading yaml fails
QubitSetting::findAndSave('diacritics', 0, ['sourceCulture' => true]);
unlink($diacriticsMappingPath);
$this->getUser()->setFlash('error', $this->context->i18n->__('Unable to upload diacritis mapping yaml file.'));
$this->getUser()->setFlash('error', $this->context->i18n->__('Unable to upload diacritics mapping yaml file.'));
unset($this->updateMessage);
}

Expand Down

0 comments on commit 1da71a7

Please sign in to comment.