MDL-47494 gapselect: Add missing defined('MOODLE_INTERNAL') || die();
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 23 Feb 2011 15:03:35 +0000 (15:03 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 23 Feb 2011 16:00:20 +0000 (16:00 +0000)
13 files changed:
question/type/gapselect/edit_form_base.php
question/type/gapselect/edit_gapselect_form.php
question/type/gapselect/question.php
question/type/gapselect/questionbase.php
question/type/gapselect/questiontype.php
question/type/gapselect/questiontypebase.php
question/type/gapselect/renderer.php
question/type/gapselect/rendererbase.php
question/type/gapselect/simpletest/helper.php
question/type/gapselect/simpletest/testquestion.php
question/type/gapselect/simpletest/testquestiontype.php
question/type/gapselect/simpletest/testwalkthrough.php
question/type/gapselect/version.php

index c5416ca..21d5afe 100755 (executable)
@@ -25,6 +25,9 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
+
 /**
  * Elements embedded in question text editing form definition.
  *
index 8c98fcc..4c57e27 100755 (executable)
@@ -25,6 +25,8 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php');
 
 
index 9f0bec5..1336978 100755 (executable)
@@ -25,6 +25,8 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot . '/question/type/gapselect/questionbase.php');
 
 
index f2af739..60ed029 100755 (executable)
@@ -26,6 +26,9 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
+
 /**
  * Represents embedded element in question text question. Parent of drag and drop and select from
  * drop down list and ?others?
index 8eb7252..dd27431 100755 (executable)
@@ -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');
index dfd8ab0..067c592 100755 (executable)
@@ -15,7 +15,6 @@
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
-
 /**
  * Question type class for the embedded element in question text question types.
  *
@@ -26,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');
index 9bc93d6..0b93fd3 100755 (executable)
@@ -25,6 +25,8 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php');
 
 
index 0f9e791..7a8913f 100755 (executable)
@@ -25,6 +25,9 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
+
 /**
  * Generates the output for question types where the question includes embedded interactive elements in the
  * question text.
index 2edbc61..49b96d7 100755 (executable)
@@ -25,6 +25,9 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
+
 /**
  * Test helper class for the select missing words question type.
  *
index bea29b1..f5d2c2a 100755 (executable)
@@ -15,7 +15,6 @@
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
-
 /**
  * Unit tests for the select missing words question definition class.
  *
@@ -25,6 +24,9 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
+
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
 require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php');
 
index 29951e5..336621b 100755 (executable)
@@ -25,6 +25,8 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
 require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php');
 
index 129de0c..abce128 100755 (executable)
@@ -26,6 +26,8 @@
  */
 
 
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
 require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php');
 
index 80cd31c..293b937 100755 (executable)
@@ -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;