Project

General

Profile

« Previous | Next » 

Revision 141

Added by ryan about 19 years ago

Update module install code for correct insertion into addons table

View differences:

trunk/wb/admin/modules/install.php
123 123

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

Also available in: Unified diff