Skip to content

Commit

Permalink
issue #4: move cohort lib include to helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim committed Sep 3, 2024
1 parent 003d239 commit 6fc367d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
use tool_dynamic_cohorts\condition_base;
use tool_dynamic_cohorts\rule;

defined('MOODLE_INTERNAL') || die();

require_once($CFG->dirroot . '/cohort/lib.php');

/**
* Helper class.
*
Expand Down
4 changes: 0 additions & 4 deletions classes/observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
use stdClass;
use context_system;

defined('MOODLE_INTERNAL') || die();

require_once($CFG->dirroot . '/cohort/lib.php');

/**
* Event observer class.
*
Expand Down

0 comments on commit 6fc367d

Please sign in to comment.