Project

General

Profile

« Previous | Next » 

Revision 942

Added by doc over 15 years ago

fixed wrong index in language array and removed some comment lines

View differences:

uninstall.php
47 47

  
48 48
// Check if the module exists
49 49
if(!is_dir(WB_PATH.'/modules/'.$file)) {
50
	$admin->print_error($MESSAGE['MODULES']['NOT_INSTALLED']);
50
	$admin->print_error($MESSAGE['GENERIC']['NOT_INSTALLED']);
51 51
}
52 52

  
53
/**
54
*	Check if the module is in use
55
*
56
*	@version	0.2.0
57
*	@build		1
58
*	@date		2008-12-29
59
*	@author		aldus
60
*	@package	Website Baker: Admin - modules
61
*	@state		@beta
62
*
63
*/
64

  
65 53
if (!function_exists("replace_all")) {
66 54
	function replace_all ($aStr = "", &$aArray ) {
67 55
		foreach($aArray as $k=>$v) $aStr = str_replace("{{".$k."}}", $v, $aStr);
......
126 114

  
127 115
// Try to delete the module dir
128 116
if(!rm_full_dir(WB_PATH.'/modules/'.$file)) {
129
	$admin->print_error($MESSAGE['MODULES']['CANNOT_UNINSTALL']);
117
	$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL']);
130 118
} else {
131 119
	// Remove entry from DB
132 120
	$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE directory = '".$file."' AND type = 'module'");

Also available in: Unified diff