Commit 7ac112aa authored by ergonlogic's avatar ergonlogic

Revert "Find profiles correctly in Drupal 8."

This reverts commit b8ef181b.
parent b8ef181b
......@@ -381,12 +381,10 @@ function _provision_find_profiles() {
include_once('core/includes/install.inc');
$profiles_subdirs[] = "./core/profiles";
$profiles_subdirs[] = "./profiles";
$profile_search_ext = "info.yml";
}
else {
include_once('includes/install.inc');
$profiles_subdirs[] = "./profiles";
$profile_search_ext = "profile";
}
foreach($profiles_subdirs as $profiles_subdir) {
if (!$dir = opendir($profiles_subdir)) {
......@@ -395,7 +393,7 @@ function _provision_find_profiles() {
}
while (FALSE !== ($name = readdir($dir))) {
$languages = array();
$file = "$profiles_subdir/$name/$name.$profile_search_ext";
$file = "$profiles_subdir/$name/$name.profile";
if ($name == '..' || $name == '.' || !file_exists($file)) {
continue;
}
......
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