MDL-32727 - quiz: fix incorrect variable name in upgrade
This commit is contained in:
@@ -113,7 +113,7 @@ function xmldb_quiz_upgrade($oldversion) {
|
||||
// Get a list of response variables that have files.
|
||||
require_once($CFG->dirroot . '/question/type/questiontypebase.php');
|
||||
$variables = array();
|
||||
foreach (get_plugin_list('qtype') as $plugin => $path) {
|
||||
foreach (get_plugin_list('qtype') as $qtypename => $path) {
|
||||
$file = $path . '/questiontype.php';
|
||||
if (!is_readable($file)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user