Project

General

Profile

« Previous | Next » 

Revision 209

Added by stefan about 19 years ago

Fixed bug #43 - double entries in addon table.

View differences:

install.php
114 114
	}
115 115
}
116 116

  
117
// Load module info into DB
118
load_module(WB_PATH.'/modules/'.$module_directory, false);
119

  
120 117
// Run the modules install // upgrade script if there is one
121 118
if(file_exists(WB_PATH.'/modules/'.$module_directory.'/'.$action.'.php')) {
122 119
	require(WB_PATH.'/modules/'.$module_directory.'/'.$action.'.php');
......
124 121

  
125 122
// Print success message
126 123
if ($action=="install") {
127
	$settings_rows=	"INSERT INTO `".TABLE_PREFIX."addons` (directory,name,description,type,function,version,platform,author,license) VALUES "
128
	." ('$module_directory', '$module_name', '$module_description', 'module', '$module_function', '$module_version', '$module_platform', '$module_author', '$module_license');";
129
	$database->query($settings_rows);
124
	// Load module info into DB
125
	load_module(WB_PATH.'/modules/'.$module_directory, false);
130 126
	$admin->print_success($MESSAGE['GENERIC']['INSTALLED']);
131 127
} else if ($action=="upgrade") {
132 128
	$admin->print_success($MESSAGE['GENERIC']['UPGRADED']);

Also available in: Unified diff