MDL-61242 repository_equella: Fix missing class repository

The call to the class 'repository' introduced in the commit d05c2ac7cc
didn't fully work and threw: "Exception - Class 'repository' not found".
This fixes the missing library inclusion.
This commit is contained in:
David Mudrák
2018-01-31 23:42:58 +01:00
committed by Eloy Lafuente (stronk7)
parent 52c730014e
commit ea12e51d4d
+2
View File
@@ -23,6 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->dirroot . '/repository/lib.php');
$json = required_param('tlelinks', PARAM_RAW);
require_login();