ProcessExportProfile icon indicating copy to clipboard operation
ProcessExportProfile copied to clipboard

Allow to export profile with config-dev.php file, if config.php not exists

Open trk opened this issue 10 months ago • 0 comments

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";
}

trk avatar Feb 09 '25 19:02 trk