MDL-55253 mod_choice: prevent direct script access to lib files.
authorStephen Bourget <steve.bourget@sau19.org>
Fri, 15 Jul 2016 20:34:37 +0000 (16:34 -0400)
committerDan Poltawski <dan@moodle.com>
Mon, 25 Jul 2016 08:40:38 +0000 (09:40 +0100)
mod/choice/lib.php

index 5d22112..65cd252 100644 (file)
@@ -21,6 +21,8 @@
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
+defined('MOODLE_INTERNAL') || die();
+
 /** @global int $CHOICE_COLUMN_HEIGHT */
 global $CHOICE_COLUMN_HEIGHT;
 $CHOICE_COLUMN_HEIGHT = 300;