mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-17203 new option for disabling of calendar export
This commit is contained in:
parent
81f2bb8122
commit
dbf9d4cb37
5 changed files with 22 additions and 9 deletions
|
@ -15,6 +15,10 @@ if ($courseid = optional_param('course', 0, PARAM_INT)) {
|
|||
|
||||
require_login();
|
||||
|
||||
if (empty($CFG->enablecalendarexport)) {
|
||||
die('no export');
|
||||
}
|
||||
|
||||
if(!$site = get_site()) {
|
||||
redirect($CFG->wwwroot.'/'.$CFG->admin.'/index.php');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue