]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19708 adding missing sumbit button class include
authorskodak <skodak>
Fri, 3 Jul 2009 13:31:37 +0000 (13:31 +0000)
committerskodak <skodak>
Fri, 3 Jul 2009 13:31:37 +0000 (13:31 +0000)
lib/form/cancel.php

index 1ef1128b05f5272da4d0148313c458700045da33..fa7c64506a6eb630ac02140538b94542c652f1a4 100644 (file)
@@ -1,5 +1,10 @@
 <?php
-require_once('HTML/QuickForm/submit.php');
+if (!defined('MOODLE_INTERNAL')) {
+    die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
+}
+
+global $CFG;
+require_once($CFG->libdir.'/form/submit.php');
 
 /**
  * HTML class for a submit type element