Commit 834174ca83055a1bd0411a17d5749918e0ce4e5b

Authored by DFNVC
1 parent 9d2333b789
Exists in master

eventslib.php muss ab Moodle-Version 3.6 nicht mehr explizit importiert werden.

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

... ... @@ -26,7 +26,11 @@ require_once('locallib.php');
26 26 $adobeconnect_EXAMPLE_CONSTANT = 42;
27 27  
28 28 /** Include eventslib.php */
29   -require_once($CFG->libdir.'/eventslib.php');
  29 +$branch = (int)$CFG->branch;
  30 +if ($branch <= 35) {
  31 + require_once($CFG->libdir.'/eventslib.php');
  32 +}
  33 +
30 34 /** Include calendar/lib.php */
31 35 require_once($CFG->dirroot.'/calendar/lib.php');
32 36