Commit eb74241c authored by catch's avatar catch

Issue #1830170 by fubhy: Fixed module_list() doesn't register namespaces with...

Issue #1830170 by fubhy: Fixed module_list() doesn't register namespaces with the classloader when given a fixed module list.
parent 669eaa29
......@@ -96,6 +96,7 @@ function module_list($type = 'module_enabled', array $fixed_list = NULL, $reset
if (isset($fixed_list)) {
$module_list = array();
foreach ($fixed_list as $name => $module) {
drupal_classloader_register($name, dirname($module['filename']));
drupal_get_filename('module', $name, $module['filename']);
$module_list[$name] = $name;
}
......
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