mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-39629 theme_formal_white: added missing pluginfile func
This commit is contained in:
parent
ac547b717a
commit
6e49802071
@ -203,3 +203,27 @@ function formal_white_set_customcss($css, $customcss) {
|
|||||||
$css = str_replace($tag, $customcss, $css);
|
$css = str_replace($tag, $customcss, $css);
|
||||||
return $css;
|
return $css;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serves formal white files.
|
||||||
|
*
|
||||||
|
* @param stdClass $course
|
||||||
|
* @param stdClass $cm
|
||||||
|
* @param context $context
|
||||||
|
* @param string $filearea
|
||||||
|
* @param type $args
|
||||||
|
* @param array $forcedownload
|
||||||
|
* @param array $options
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
function theme_formal_white_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array()) {
|
||||||
|
if ($context->contextlevel == CONTEXT_SYSTEM and $filearea === 'customlogourl') {
|
||||||
|
$theme = theme_config::load('formal_white');
|
||||||
|
return $theme->setting_file_serve('customlogourl', $args, $forcedownload, $options);
|
||||||
|
} else if ($context->contextlevel == CONTEXT_SYSTEM and $filearea === 'frontpagelogourl') {
|
||||||
|
$theme = theme_config::load('formal_white');
|
||||||
|
return $theme->setting_file_serve('frontpagelogourl', $args, $forcedownload, $options);
|
||||||
|
} else {
|
||||||
|
send_file_not_found();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user