From 41d2f7f7811d2f7f238af6c57430a41f7a443b9b Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 2 Jul 2009 15:02:51 +0000 Subject: [PATCH] MDL-16438 fixed incomplete plugin centralisation, sorry; unfortunately install is kind of non-working now; this may break current dev installs :-( --- lib/moodlelib.php | 8 ++++---- mod/quiz/report/statistics/db/install.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 4c0fe9913c..43387e0169 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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 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'; diff --git a/mod/quiz/report/statistics/db/install.php b/mod/quiz/report/statistics/db/install.php index aa193d21f1..5d2ffd2e2d 100644 --- a/mod/quiz/report/statistics/db/install.php +++ b/mod/quiz/report/statistics/db/install.php @@ -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(); -- 2.39.5