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
// Try to delete the language code
55 55
if(!unlink(WB_PATH.'/languages/'.$_POST['code'].'.php')) {
56 56
	$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL']);
57
} else {
58
	// Remove entry from DB
59
	$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE directory = '".$_POST['code']."' AND type = 'language' LIMIT 0,1");
57 60
}
58 61

  
59 62
// Print success message

Also available in: Unified diff