Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
b28ad86a
Commit
b28ad86a
authored
Feb 23, 2011
by
Tim Hunt
Browse files
MDL-47494 gapselect: Add missing defined('MOODLE_INTERNAL') || die();
parent
9df0480d
Changes
13
Hide whitespace changes
Inline
Side-by-side
question/type/gapselect/edit_form_base.php
View file @
b28ad86a
...
...
@@ -25,6 +25,9 @@
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
/**
* Elements embedded in question text editing form definition.
*
...
...
question/type/gapselect/edit_gapselect_form.php
View file @
b28ad86a
...
...
@@ -25,6 +25,8 @@
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
require_once
(
$CFG
->
dirroot
.
'/question/type/gapselect/edit_form_base.php'
);
...
...
question/type/gapselect/question.php
View file @
b28ad86a
...
...
@@ -25,6 +25,8 @@
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
require_once
(
$CFG
->
dirroot
.
'/question/type/gapselect/questionbase.php'
);
...
...
question/type/gapselect/questionbase.php
View file @
b28ad86a
...
...
@@ -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?
...
...
question/type/gapselect/questiontype.php
View file @
b28ad86a
...
...
@@ -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'
);
...
...
question/type/gapselect/questiontypebase.php
View file @
b28ad86a
...
...
@@ -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'
);
...
...
question/type/gapselect/renderer.php
View file @
b28ad86a
...
...
@@ -25,6 +25,8 @@
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
require_once
(
$CFG
->
dirroot
.
'/question/type/gapselect/rendererbase.php'
);
...
...
question/type/gapselect/rendererbase.php
View file @
b28ad86a
...
...
@@ -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.
...
...
question/type/gapselect/simpletest/helper.php
View file @
b28ad86a
...
...
@@ -25,6 +25,9 @@
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
/**
* Test helper class for the select missing words question type.
*
...
...
question/type/gapselect/simpletest/testquestion.php
View file @
b28ad86a
...
...
@@ -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'
);
...
...
question/type/gapselect/simpletest/testquestiontype.php
View file @
b28ad86a
...
...
@@ -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'
);
...
...
question/type/gapselect/simpletest/testwalkthrough.php
View file @
b28ad86a
...
...
@@ -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'
);
...
...
question/type/gapselect/version.php
View file @
b28ad86a
...
...
@@ -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
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment