MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script.
This commit is contained in:
+5
-1
@@ -1,5 +1,9 @@
|
||||
<?php // $Id$
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
}
|
||||
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
|
||||
class note_edit_form extends moodleform {
|
||||
@@ -31,4 +35,4 @@ class note_edit_form extends moodleform {
|
||||
$mform->setType('id', PARAM_INT);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user