ProcessExportProfile
ProcessExportProfile copied to clipboard
Allow to export profile with config-dev.php file, if config.php not exists
Little addition on this line: https://github.com/ryancramerdesign/ProcessExportProfile/blob/90b168ddd1b43951eca769c9913b603b75873df7/ProcessExportProfile.module#L106
$path = dirname(rtrim($config->paths->templates, '/'));
$this->siteConfigFile = "{$path}/config.php";
if (!file_exists($this->siteConfigFile) && file_exists("{$path}/config-dev.php")) {
$this->siteConfigFile = "{$path}/config-dev.php";
}