From 6ffb8fa21a50c77bc89cb03822ab1e43ac96788e Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Sat, 13 Aug 2016 21:40:41 -0400 Subject: [PATCH] MDL-55557 mod_wiki: Add missing MOODLE_INTERNAL checks --- mod/wiki/create_form.php | 2 ++ mod/wiki/lib.php | 2 ++ mod/wiki/locallib.php | 2 ++ mod/wiki/pagelib.php | 2 ++ 4 files changed, 8 insertions(+) diff --git a/mod/wiki/create_form.php b/mod/wiki/create_form.php index 422b6e678ea..d990a122ccf 100644 --- a/mod/wiki/create_form.php +++ b/mod/wiki/create_form.php @@ -24,6 +24,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->libdir.'/formslib.php'); class mod_wiki_create_form extends moodleform { diff --git a/mod/wiki/lib.php b/mod/wiki/lib.php index a2def6c17db..7c4524577c8 100644 --- a/mod/wiki/lib.php +++ b/mod/wiki/lib.php @@ -34,6 +34,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + /** * Given an object containing all the necessary data, * (defined by the form in mod.html) this function diff --git a/mod/wiki/locallib.php b/mod/wiki/locallib.php index 51a7593500d..9f3d9dbb64c 100644 --- a/mod/wiki/locallib.php +++ b/mod/wiki/locallib.php @@ -32,6 +32,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/mod/wiki/lib.php'); require_once($CFG->dirroot . '/mod/wiki/parser/parser.php'); require_once($CFG->libdir . '/filelib.php'); diff --git a/mod/wiki/pagelib.php b/mod/wiki/pagelib.php index 660f92e0baf..87e0e5d0a7f 100644 --- a/mod/wiki/pagelib.php +++ b/mod/wiki/pagelib.php @@ -33,6 +33,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/mod/wiki/edit_form.php'); /**