MDL-25761 Database module: missing portfolio library inclusion
authorDavid Mudrak <david@moodle.com>
Tue, 21 Dec 2010 09:40:19 +0000 (10:40 +0100)
committerDavid Mudrak <david@moodle.com>
Tue, 21 Dec 2010 09:40:19 +0000 (10:40 +0100)
Portfolios are not officially supported in Database module yet. But this
missing library inclusion is a coding error because the class defined in
the library is already used in the code.

mod/data/locallib.php

index 807999b..d8f8ab9 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 require_once($CFG->dirroot . '/mod/data/lib.php');
+require_once($CFG->libdir . '/portfolio/caller.php');
 
 /**
  * The class to handle entry exports of a database module