From e819ccc96b56495221506fe6796f01f214b7506c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 19 Feb 2011 00:50:43 +0000 Subject: - Patch #1014130 by catch, carlos8f, David_Rothstein: install_profile_info() does a file system scan on every request to admin/config (and etc.). --- includes/install.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes/install.inc') diff --git a/includes/install.inc b/includes/install.inc index 68a67bcd6..b3615f69e 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -199,7 +199,7 @@ function drupal_install_profile_distribution_name() { // At all other times, we load the profile via standard methods. else { $profile = drupal_get_profile(); - $info = install_profile_info($profile); + $info = system_get_info('module', $profile); return $info['distribution_name']; } } @@ -1199,6 +1199,10 @@ function drupal_check_module($module) { * installed, to be shown throughout the installation process. Defaults to * 'Drupal'. * + * Note that this function does an expensive file system scan to get info file + * information for dependencies. If you only need information from the info + * file itself, use system_get_info(). + * * Example of .info file: * @code * name = Minimal -- cgit v1.2.3