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

MDL-20636 Add missing defined('MOODLE_INTERNAL') || die();

parent 7764183a
......@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour for questions that can only be graded manually.
*
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the manual
* graded behaviour.
......
......@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
......
......@@ -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/>.
/**
* Fake question behaviour that is used when the actual qim was not
* available.
......@@ -27,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Fake question behaviour that is used when the actual behaviour
* is not available.
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question when the actual behaviour
* used is not available.
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
require_once(dirname(__FILE__) . '/../behaviour.php');
......
......@@ -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/>.
/**
* This behaviour that is used when the actual qim was not
* available.
......@@ -27,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This behaviour is specifically for use with the Opaque question type.
*
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question when the actual behaviour
* used is not available.
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
require_once(dirname(__FILE__) . '/../behaviour.php');
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer base class for question behaviours.
*
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
// number of categories to display on page
define('QUESTION_PAGE_LENGTH', 25);
......
......@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/formslib.php');
......
......@@ -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/>.
/**
* Functions used to show question editing interface
*
......@@ -26,8 +25,9 @@
*/
require_once($CFG->libdir . '/questionlib.php');
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/questionlib.php');
define('DEFAULT_QUESTIONS_PER_PAGE', 20);
......
......@@ -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/>.
/**
* More object oriented wrappers around parts of the Moodle question bank.
*
......@@ -30,6 +29,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This static class provides access to the other question bank.
*
......
......@@ -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/>.
/**
* Code for loading and saving quiz attempts to and from the database.
*
......@@ -26,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This class controls the loading and saving of question engine data to and from
* the database.
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/states.php');
require_once(dirname(__FILE__) . '/datalib.php');
require_once(dirname(__FILE__) . '/renderer.php');
......
......@@ -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/>.
/**
* Renderers for outputting parts of the question engine.
*
......@@ -26,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This renderer controls the overall output of questions. It works with a
* {@link qbehaviour_renderer} and a {@link qtype_renderer} to output the
......
......@@ -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/>.
/**
* This file contains helper classes for testing the question engine.
*
......@@ -26,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../lib.php');
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../lib.php');
......
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