Index: branches/unlabeled/unlabeled-1.3.4/admin/modules/addmodule.php =================================================================== diff -u -r554 -r795 --- branches/unlabeled/unlabeled-1.3.4/admin/modules/addmodule.php (.../addmodule.php) (revision 554) +++ branches/unlabeled/unlabeled-1.3.4/admin/modules/addmodule.php (.../addmodule.php) (revision 795) @@ -88,6 +88,7 @@ $pathtolocal = $pathtoroot."kernel/"; require_once ($pathtoroot.$admin."/include/elements.php"); +require_once ($pathtoroot.$admin."/install/install_lib.php"); require_once ($pathtoroot."kernel/admin/include/navmenu.php"); require_once ($pathtolocal."admin/include/navmenu.php"); require_once($pathtoroot.$admin."/toolbar.php"); @@ -148,7 +149,6 @@ closedir($dir); } - foreach($new as $mod => $file) { $m = new clsModule(); @@ -166,7 +166,7 @@ $mod_tmp_name = substr($mod_tmp_name, 0, strlen($mod_tmp_name) - 1); - if (_ModuleLicensed($mod_tmp_name)) { + if (inst_ModuleLicensed($mod_tmp_name)) { $data["Url"] = "$status"; } else {