MDL-16438 fixed incomplete plugin centralisation, sorry; unfortunately install is kind of non-working now; this may break current dev installs :-(

This commit is contained in:
skodak 2009-07-02 15:02:51 +00:00
parent db4ecf4c7f
commit 41d2f7f781
2 changed files with 5 additions and 5 deletions

View File

@ -6741,7 +6741,7 @@ function get_plugin_types($fullpaths=true) {
'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)) {
@ -6751,9 +6751,9 @@ function get_plugin_types($fullpaths=true) {
$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';
}
@ -6786,7 +6786,7 @@ function get_plugin_list($plugintype, $fullpaths=true) {
}
if ($plugintype === 'mod') {
// mod is 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';

View File

@ -3,7 +3,7 @@
// This file is executed right after the install.xml
//
function xmldb_quizreport_statistics_install() {
function xmldb_quiz_statistics_install() {
global $DB;
$record = new object();