Commit cc080cf3 authored by gboudrias's avatar gboudrias

Revert "Issue #2595809 by helmo: Find (d8) profiles without a .profile"

This reverts commit 4eb1ba7c.
parent 4eb1ba7c
......@@ -393,11 +393,13 @@ function _provision_find_profiles() {
}
while (FALSE !== ($name = readdir($dir))) {
$languages = array();
if ($name == '..' || $name == '.') {
$file = "$profiles_subdir/$name/$name.profile";
if ($name == '..' || $name == '.' || !file_exists($file)) {
continue;
}
$profile = new stdClass();
$profile->name = $name;
$profile->filename = $file;
$profile->info = array();
......@@ -412,7 +414,6 @@ function _provision_find_profiles() {
if (!empty($profile->info['name'])) {
$profile->name = $profile->info['name'];
}
$profile->filename = $yaml_file;
}
else {
$info_file = "$profiles_subdir/$name/$name.info";
......@@ -423,7 +424,6 @@ function _provision_find_profiles() {
continue;
}
}
$profile->filename = $info_file;
}
require_once($profile->filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment