diff --git a/mod/assignment/locallib.php b/mod/assignment/locallib.php index 4362f4489c026..5bb504a6f48f2 100644 --- a/mod/assignment/locallib.php +++ b/mod/assignment/locallib.php @@ -18,6 +18,7 @@ // this file contains all the functions that aren't needed by core moodle // but start becoming required once we're actually inside the assignment module. +require_once($CFG->dirroot . '/mod/assignment/lib.php'); require_once($CFG->libdir . '/portfolio/caller.php'); /** @@ -151,4 +152,4 @@ public static function display_name() { public static function base_supported_formats() { return array(PORTFOLIO_FORMAT_FILE, PORTFOLIO_FORMAT_LEAP2A); } -} \ No newline at end of file +} diff --git a/portfolio/file.php b/portfolio/file.php index b0efae0147f33..b9dbd5e93c7ec 100644 --- a/portfolio/file.php +++ b/portfolio/file.php @@ -35,7 +35,6 @@ require_once($CFG->libdir . '/portfoliolib.php'); require_once($CFG->libdir . '/portfolio/exporter.php'); -require_once($CFG->libdir . '/file/stored_file.php'); require_once($CFG->libdir . '/filelib.php'); // exporter id