Closed jpdevries closed 8 years ago
@jpdevries Thanks! Not entirely sure if the logic is correct though; as I see it it could be simplified a bit like the following:
$emailFromName = $this->modx->getOption('emailFromName', $this->formit->config, $this->modx->getOption('site_name', null, $emailFrom));
So first look for the emailFromName
in your Formit config, then look for site_name
in system settings, and finally fallback to emailFrom
in Formit config.
@joeke makes sense. Wasn't sure if it should fallback to the site_name
before $emailFrom
or not
first looks for
emailFromName
in settings then in$this->formit->config
then looks forsite_name
in settingsfinally falls back to
$emailFrom
NOTE: This may be considered a breaking change depending on how you look at it
See Sterc/FormIt#101