Project

General

Profile

« Previous | Next » 

Revision 170

Added by ryan about 19 years ago

Fixed addon listing in numerous places so it now use's DB for info

View differences:

uninstall.php
54 54
	$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL']);
55 55
}
56 56

  
57
$database->query("DELETE FROM ".TABLE_PREFIX."modules WHERE directory =
58
'$file'"); 
57
$database->query("DELETE FROM ".TABLE_PREFIX."modules WHERE directory = '$file'"); 
59 58

  
60 59
// Run the modules uninstall script if there is one
61 60
if(file_exists(WB_PATH.'/modules/'.$file.'/uninstall.php')) {
......
65 64
// Try to delete the module dir
66 65
if(!rm_full_dir(WB_PATH.'/modules/'.$file)) {
67 66
	$admin->print_error($MESSAGE['MODULES']['CANNOT_UNINSTALL']);
67
} else {
68
	// Remove entry from DB
69
	$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE directory = '".$file."' AND type = 'module' LIMIT 0,1");
68 70
}
69 71

  
70 72
// Print success message

Also available in: Unified diff