mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-28049' of git://github.com/timhunt/moodle
This commit is contained in:
commit
3bdc10150c
2 changed files with 8 additions and 1 deletions
|
@ -27,6 +27,14 @@
|
||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once($CFG->libdir . '/xmlize.php');
|
require_once($CFG->libdir . '/xmlize.php');
|
||||||
|
if (!class_exists('qformat_default')) {
|
||||||
|
// This is ugly, but this class is also (ab)used by mod/lesson, which defines
|
||||||
|
// a different base class in mod/lesson/format.php. Thefore, we can only
|
||||||
|
// include the proper base class conditionally like this. (We have to include
|
||||||
|
// the base class like this, otherwise it breaks third-party question types.)
|
||||||
|
// This may be reviewd, and a better fix found one day.
|
||||||
|
require_once($CFG->dirroot . '/question/format.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once($CFG->libdir . '/questionlib.php');
|
require_once($CFG->libdir . '/questionlib.php');
|
||||||
require_once($CFG->dirroot . '/question/format.php');
|
|
||||||
require_once($CFG->dirroot . '/question/format/xml/format.php');
|
require_once($CFG->dirroot . '/question/format/xml/format.php');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue