Commit fa54a703 authored by webchick's avatar webchick
Browse files

#399642 follow-up by JacobSingh: include /includes/ in...

#399642 follow-up by JacobSingh: include /includes/ in module_enable() which is required when enabling modules for the first time.
parent efb4ec06
......@@ -338,6 +338,8 @@ function module_enable($module_list, $enable_dependencies = TRUE, $disable_modul
$invoke_modules = array();
// Required for _drupal_install_module().
include_once DRUPAL_ROOT . '/includes/';
// Try to install the enabled modules and collect which were installed.
// $module_list is not changed and already installed modules are ignored.
$modules_installed = array_filter($module_list, '_drupal_install_module');
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