diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 3b69ce3..55102bc 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1176,6 +1176,23 @@ function _install_select_profile($profiles) { elseif (!empty($_POST['profile']) && isset($profiles[$_POST['profile']])) { return $profiles[$_POST['profile']]->name; } + else { + // Determine if 1 and only 1 profile is "exclusive". + $exclusive_profile = NULL; + foreach ($profiles as $profile) { + $profile_info = install_profile_info($profile->name); + if (!empty($profile_info['exclusive'])) { + if (empty($exclusive_profile)) { + $exclusive_profile = $profile->name; + } + else { + // Found more that 1 exclusive profile ignore property + return; + } + } + } + return $exclusive_profile; + } } /**