Skip to content

Commit

Permalink
Merge branch 'MDL-50325_inconsistent_check_missing_module' of http://…
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 7, 2018
2 parents ff4bab9 + 7cdd97b commit 43ae41a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@
$table->set_attribute('class', 'admintable generaltable');
$table->setup();

$pluginmanager = core_plugin_manager::instance();

foreach ($modules as $module) {
$plugininfo = $pluginmanager->get_plugin_info('mod_'.$module->name);
$status = $plugininfo->get_status();

if (!file_exists("$CFG->dirroot/mod/$module->name/lib.php")) {
if ($status === core_plugin_manager::PLUGIN_STATUS_MISSING) {
$strmodulename = '<span class="notifyproblem">'.$module->name.' ('.get_string('missingfromdisk').')</span>';
$missing = true;
} else {
Expand Down

0 comments on commit 43ae41a

Please sign in to comment.