Skip to content

Commit

Permalink
MDL-61238 cohort: require_once all libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeCarrier authored and stronk7 committed Aug 14, 2018
1 parent 92af6a3 commit 6b6fd4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cohort/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
*/

require('../config.php');
require($CFG->dirroot.'/course/lib.php');
require($CFG->dirroot.'/cohort/lib.php');
require($CFG->dirroot.'/cohort/edit_form.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/cohort/lib.php');
require_once($CFG->dirroot.'/cohort/edit_form.php');

$id = optional_param('id', 0, PARAM_INT);
$contextid = optional_param('contextid', 0, PARAM_INT);
Expand Down
2 changes: 1 addition & 1 deletion cohort/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

require('../config.php');
require($CFG->dirroot.'/cohort/lib.php');
require_once($CFG->dirroot.'/cohort/lib.php');
require_once($CFG->libdir.'/adminlib.php');

$contextid = optional_param('contextid', 0, PARAM_INT);
Expand Down

0 comments on commit 6b6fd4b

Please sign in to comment.