mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'wip-MDL-56439-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
2eb61a66dc
@ -96,6 +96,9 @@ abstract class format_base {
|
||||
* @return string
|
||||
*/
|
||||
protected static final function get_format_or_default($format) {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/course/lib.php');
|
||||
|
||||
if (array_key_exists($format, self::$classesforformat)) {
|
||||
return self::$classesforformat[$format];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user