MDL-41348 question code depends on filelib.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 28 Aug 2013 10:15:24 +0000 (11:15 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 28 Aug 2013 10:15:24 +0000 (11:15 +0100)
I think this used to work because mod/forum/lib.php used to be included
everywhere, and in turn included lib/formslib.php. We should declare the
dependencey explicitly.

question/engine/lib.php

index 8b29eb8..29c6366 100644 (file)
@@ -26,6 +26,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
+require_once($CFG->libdir . '/filelib.php');
 require_once(dirname(__FILE__) . '/questionusage.php');
 require_once(dirname(__FILE__) . '/questionattempt.php');
 require_once(dirname(__FILE__) . '/questionattemptstep.php');