MDL-21146 adding missing license install code
[moodle.git] / lib / db / install.php
index fdd92de..b3748cd 100644 (file)
@@ -218,4 +218,8 @@ function xmldb_main_install() {
 
     // init themes
     set_config('themerev', 1);
+
+    // Install licenses
+    require_once($CFG->libdir . '/licenselib.php');
+    license_manager::install_licenses();
 }