mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'wip-MDL-56439-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
2eb61a66dc
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ abstract class format_base {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected static final function get_format_or_default($format) {
|
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)) {
|
if (array_key_exists($format, self::$classesforformat)) {
|
||||||
return self::$classesforformat[$format];
|
return self::$classesforformat[$format];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue