'portfolio' => 'portfolio/type',
'qtype' => 'question/type',
'qformat' => 'question/format');
-/*
+
$mods = get_plugin_list('mod');
foreach ($mods as $mod => $moddir) {
if (!$subplugins = plugin_supports('mod', $mod, FEATURE_MOD_SUBPLUGINS, false)) {
$info[$subtype] = $dir;
}
}
-*/
+
// do not include themes if in non-standard location
- if ($CFG->themedir === $CFG->dirroot.'/theme') {
+ if (empty($CFG->themedir) or $CFG->themedir === $CFG->dirroot.'/theme') {
$info['theme'] = 'theme';
}
}
if ($plugintype === 'mod') {
- // mod is eán exception because we have to call this function from get_plugin_types()
+ // mod is an exception because we have to call this function from get_plugin_types()
$fulldir = $CFG->dirroot.'/mod';
$dir = $fullpaths ? $fulldir : 'mod';