MDL-26041 do not include lables in the list of resources

This commit is contained in:
Petr Skoda
2011-01-23 12:32:08 +01:00
parent 17e03900c9
commit a915dedb2a
+3
View File
@@ -37,6 +37,9 @@ $allmodules = $DB->get_records('modules', array('visible'=>1));
$modules = array();
foreach ($allmodules as $key=>$module) {
$modname = $module->name;
if ($modname === 'label') {
continue;
}
$libfile = "$CFG->dirroot/mod/$modname/lib.php";
if (!file_exists($libfile)) {
continue;