Index: mollom.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.module,v
retrieving revision 1.94
diff -u -p -r1.94 mollom.module
--- mollom.module	3 Nov 2010 14:52:06 -0000	1.94
+++ mollom.module	4 Jan 2011 13:07:55 -0000
@@ -1884,9 +1884,9 @@ function _mollom_get_version() {
   }
 
   // Retrieve Drupal distribution and installation profile information.
-  include_once DRUPAL_ROOT . '/includes/install.inc';
   $profile = drupal_get_profile();
-  $profile_info = install_profile_info($profile);
+  // Avoid calling install_profile_info() here since this does a file system scan.
+  $profile_info = system_get_info('module', drupal_get_profile()) + array('distribution_name' => 'Drupal');
   if (empty($profile_info['version'])) {
     $profile_info['version'] = VERSION;
   }
