diff --git a/mod/assignment/type/upload/upload_form.php b/mod/assignment/type/upload/upload_form.php index 5f200c724ff..e7fbd436267 100644 --- a/mod/assignment/type/upload/upload_form.php +++ b/mod/assignment/type/upload/upload_form.php @@ -15,6 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . +require_once($CFG->libdir.'/formslib.php');//putting this is as a safety as i got a class not found error. /** * @package mod-assignment * @copyright 2010 Dongsheng Cai diff --git a/mod/assignment/type/uploadsingle/upload_form.php b/mod/assignment/type/uploadsingle/upload_form.php index 2e6fe7c8fba..fb6417392eb 100644 --- a/mod/assignment/type/uploadsingle/upload_form.php +++ b/mod/assignment/type/uploadsingle/upload_form.php @@ -15,6 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . +require_once($CFG->libdir.'/formslib.php');//putting this is as a safety as i got a class not found error. /** * @package mod-assignment * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}