diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-02-19 00:50:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-02-19 00:50:43 +0000 |
commit | e819ccc96b56495221506fe6796f01f214b7506c (patch) | |
tree | 62ba4e2a49e1f8224647d7b91615de375b701688 /includes/install.inc | |
parent | a5c9ab07599fb7ffb76b26f494e997e53d2d45f2 (diff) | |
download | brdo-e819ccc96b56495221506fe6796f01f214b7506c.tar.gz brdo-e819ccc96b56495221506fe6796f01f214b7506c.tar.bz2 |
- Patch #1014130 by catch, carlos8f, David_Rothstein: install_profile_info() does a file system scan on every request to admin/config (and etc.).
Diffstat (limited to 'includes/install.inc')
-rw-r--r-- | includes/install.inc | 6 |
1 files changed, 5 insertions, 1 deletions
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 |