From 32694c8c958beb926560322122c06c200a0631ba Mon Sep 17 00:00:00 2001 From: arnested Date: Fri, 30 Nov 2012 11:27:21 +0100 Subject: [PATCH] Issue #1170362 by steinmb: Fixed Install profile is disabled for lots of different reasons and core doesn't allow for that. --- includes/install.inc | 3 +++ modules/system/system.install | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/includes/install.inc b/includes/install.inc index 0372483..c8aea0e 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -204,6 +204,9 @@ function drupal_install_profile_distribution_name() { else { $profile = drupal_get_profile(); $info = system_get_info('module', $profile); + $info += array( + 'distribution_name' => 'Unknown', + ); return $info['distribution_name']; } } diff --git a/modules/system/system.install b/modules/system/system.install index 7b66767..5488190 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -33,6 +33,16 @@ function system_requirements($phase) { $profile = drupal_get_profile(); if ($profile != 'standard') { $info = system_get_info('module', $profile); + $modules = module_list(); + if (isset($modules[$profile])) { + $info = system_get_info('module', $profile); + } + else { + $info = array( + 'name' => 'Unknown', + 'version' => 'Unknown', + ); + } $requirements['install_profile'] = array( 'title' => $t('Install profile'), 'value' => $t('%profile_name (%profile-%version)', array( -- 1.8.0.1