Browse Source

Fix: Images in questions

MOODLE_20_STABLE
Vasilis Daloukas 11 years ago
parent
commit
db723d0297
  1. 3
      lib.php
  2. 4
      version.php

3
lib.php

@ -1068,8 +1068,7 @@ function mod_game_pluginfile($course, $cm, $context, $filearea, $args, $forcedow
$questionid = $args[ 0]; $questionid = $args[ 0];
$file = $args[ 1]; $file = $args[ 1];
$a = explode( '/', $context->path); $a = explode( '/', $context->path);
$courseid = $a[ 2]; if (!$contextcourse = get_context_instance(CONTEXT_COURSE, $course->id)) {
if (!$contextcourse = get_context_instance(CONTEXT_COURSE, $courseid)) {
print_error('nocontext'); print_error('nocontext');
} }
$a = array( 'component' => 'question', 'filearea' => 'questiontext', $a = array( 'component' => 'question', 'filearea' => 'questiontext',

4
version.php

@ -11,7 +11,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$module->component = 'mod_game'; // Full name of the plugin (used for diagnostics) $module->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$module->version = 2014061803; // The current module version (Date: YYYYMMDDXX) $module->version = 20140713; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010112400; // Requires Moodle 2.0 $module->requires = 2010112400; // Requires Moodle 2.0
$module->cron = 0; // Period for cron to check this module (secs) $module->cron = 0; // Period for cron to check this module (secs)
$module->release = '3.18.18.3'; $module->release = '3.19.13';

Loading…
Cancel
Save