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
61 61
// Try to delete the template dir
62 62
if(!rm_full_dir(WB_PATH.'/templates/'.$file)) {
63 63
	$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL']);
64
} else {
65
	// Remove entry from DB
66
	$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE directory = '".$file."' AND type = 'template' LIMIT 0,1");
64 67
}
65 68

  
66 69
// Update pages that use this template with default template

Also available in: Unified diff