Commit b28ad86a authored by Tim Hunt's avatar Tim Hunt
Browse files

MDL-47494 gapselect: Add missing defined('MOODLE_INTERNAL') || die();

parent 9df0480d
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
*/ */
defined('MOODLE_INTERNAL') || die();
/** /**
* Elements embedded in question text editing form definition. * Elements embedded in question text editing form definition.
* *
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php'); require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php');
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/question/type/gapselect/questionbase.php'); require_once($CFG->dirroot . '/question/type/gapselect/questionbase.php');
......
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
*/ */
defined('MOODLE_INTERNAL') || die();
/** /**
* Represents embedded element in question text question. Parent of drag and drop and select from * Represents embedded element in question text question. Parent of drag and drop and select from
* drop down list and ?others? * drop down list and ?others?
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/questionlib.php'); require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->dirroot . '/question/engine/lib.php'); require_once($CFG->dirroot . '/question/engine/lib.php');
require_once($CFG->dirroot . '/question/format/xml/format.php'); require_once($CFG->dirroot . '/question/format/xml/format.php');
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** /**
* Question type class for the embedded element in question text question types. * Question type class for the embedded element in question text question types.
* *
...@@ -26,6 +25,8 @@ ...@@ -26,6 +25,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/questionlib.php'); require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->dirroot . '/question/engine/lib.php'); require_once($CFG->dirroot . '/question/engine/lib.php');
require_once($CFG->dirroot . '/question/format/xml/format.php'); require_once($CFG->dirroot . '/question/format/xml/format.php');
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php'); require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php');
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
*/ */
defined('MOODLE_INTERNAL') || die();
/** /**
* Generates the output for question types where the question includes embedded interactive elements in the * Generates the output for question types where the question includes embedded interactive elements in the
* question text. * question text.
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
*/ */
defined('MOODLE_INTERNAL') || die();
/** /**
* Test helper class for the select missing words question type. * Test helper class for the select missing words question type.
* *
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** /**
* Unit tests for the select missing words question definition class. * Unit tests for the select missing words question definition class.
* *
...@@ -25,6 +24,9 @@ ...@@ -25,6 +24,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @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/engine/simpletest/helpers.php');
require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php'); require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php');
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php'); require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php'); require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php');
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
*/ */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php'); require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php'); require_once($CFG->dirroot . '/question/type/gapselect/simpletest/helper.php');
......
...@@ -24,5 +24,7 @@ ...@@ -24,5 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011020100; $plugin->version = 2011020100;
$plugin->requires = 2011011200; $plugin->requires = 2011011200;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment