From 425362802e55077a4c2fbc18039cc39e3bfb41ae Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 23 Feb 2011 15:03:35 +0000 Subject: [PATCH] MDL-47494 ddimageortext: Add missing defined('MOODLE_INTERNAL') || die(); --- question/type/ddimageortext/edit_ddwtos_form.php | 2 ++ question/type/ddimageortext/question.php | 5 ++++- question/type/ddimageortext/questiontype.php | 2 ++ question/type/ddimageortext/renderer.php | 2 ++ question/type/ddimageortext/simpletest/helper.php | 3 +++ question/type/ddimageortext/simpletest/testquestion.php | 2 ++ question/type/ddimageortext/simpletest/testquestiontype.php | 2 ++ question/type/ddimageortext/simpletest/testwalkthrough.php | 2 ++ question/type/ddimageortext/version.php | 2 ++ 9 files changed, 21 insertions(+), 1 deletion(-) diff --git a/question/type/ddimageortext/edit_ddwtos_form.php b/question/type/ddimageortext/edit_ddwtos_form.php index 9be4ef36df4..f840a6ef919 100755 --- a/question/type/ddimageortext/edit_ddwtos_form.php +++ b/question/type/ddimageortext/edit_ddwtos_form.php @@ -25,6 +25,8 @@ */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php'); diff --git a/question/type/ddimageortext/question.php b/question/type/ddimageortext/question.php index 191c04e3832..6861858bbf3 100755 --- a/question/type/ddimageortext/question.php +++ b/question/type/ddimageortext/question.php @@ -15,7 +15,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - /** * Drag-and-drop words into sentences question definition class. * @@ -25,8 +24,12 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/question/type/gapselect/questionbase.php'); + /** * Represents a drag-and-drop words into sentences question. * diff --git a/question/type/ddimageortext/questiontype.php b/question/type/ddimageortext/questiontype.php index fcbc0d6a2f8..aa03abee0f5 100755 --- a/question/type/ddimageortext/questiontype.php +++ b/question/type/ddimageortext/questiontype.php @@ -25,6 +25,8 @@ */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->libdir . '/questionlib.php'); require_once($CFG->dirroot . '/question/engine/lib.php'); require_once($CFG->dirroot . '/question/format/xml/format.php'); diff --git a/question/type/ddimageortext/renderer.php b/question/type/ddimageortext/renderer.php index fc1a5b2a9b7..9c127b6fc27 100755 --- a/question/type/ddimageortext/renderer.php +++ b/question/type/ddimageortext/renderer.php @@ -25,6 +25,8 @@ */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php'); diff --git a/question/type/ddimageortext/simpletest/helper.php b/question/type/ddimageortext/simpletest/helper.php index 2ee3d142df0..37f28439bc6 100755 --- a/question/type/ddimageortext/simpletest/helper.php +++ b/question/type/ddimageortext/simpletest/helper.php @@ -25,6 +25,9 @@ */ +defined('MOODLE_INTERNAL') || die(); + + /** * Test helper class for the drag-and-drop words into sentences question type. * diff --git a/question/type/ddimageortext/simpletest/testquestion.php b/question/type/ddimageortext/simpletest/testquestion.php index 2cc02432c34..00329ff3c6c 100755 --- a/question/type/ddimageortext/simpletest/testquestion.php +++ b/question/type/ddimageortext/simpletest/testquestion.php @@ -25,6 +25,8 @@ */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php'); require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php'); diff --git a/question/type/ddimageortext/simpletest/testquestiontype.php b/question/type/ddimageortext/simpletest/testquestiontype.php index 3311e12ebff..1fe729aa416 100755 --- a/question/type/ddimageortext/simpletest/testquestiontype.php +++ b/question/type/ddimageortext/simpletest/testquestiontype.php @@ -25,6 +25,8 @@ */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php'); require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php'); diff --git a/question/type/ddimageortext/simpletest/testwalkthrough.php b/question/type/ddimageortext/simpletest/testwalkthrough.php index 4b7ec380458..38ead171d94 100755 --- a/question/type/ddimageortext/simpletest/testwalkthrough.php +++ b/question/type/ddimageortext/simpletest/testwalkthrough.php @@ -25,6 +25,8 @@ */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php'); require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php'); diff --git a/question/type/ddimageortext/version.php b/question/type/ddimageortext/version.php index 19bbecdec14..94b1fbeabdf 100755 --- a/question/type/ddimageortext/version.php +++ b/question/type/ddimageortext/version.php @@ -24,5 +24,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + $plugin->version = 2011020100; $plugin->requires = 2011011200;