From 6b6fd4b0b7e8983a96463763f925398b5af35082 Mon Sep 17 00:00:00 2001 From: Luke Carrier Date: Thu, 18 Jan 2018 11:54:28 +0000 Subject: [PATCH] MDL-61238 cohort: require_once all libraries --- cohort/edit.php | 6 +++--- cohort/index.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cohort/edit.php b/cohort/edit.php index 8cae07a29582e..48285fc5de97f 100644 --- a/cohort/edit.php +++ b/cohort/edit.php @@ -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); diff --git a/cohort/index.php b/cohort/index.php index 42db1288bd360..24fa3e70a0fc5 100644 --- a/cohort/index.php +++ b/cohort/index.php @@ -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);