Project

General

Profile

« Previous | Next » 

Revision 1868

Added by Dietmar over 11 years ago

! change mysql_esc_string to WbDatabase::getInstance()->escapeStrinng()

View differences:

uninstall.php
65 65
	$admin->print_error($MESSAGE['GENERIC_CANNOT_UNINSTALL_IN_USE']);
66 66
} else {
67 67
	$sql  = 'SELECT COUNT(*) FROM `'.TABLE_PREFIX.'users` ';
68
	$sql .= 'WHERE`language`=\''.mysql_real_escape_string($code).'\'';
68
	$sql .= 'WHERE`language`=\''.$database->escapeString($code).'\'';
69 69
	if( $database->get_one($sql) ) {
70 70
		$admin->print_error($MESSAGE['GENERIC_CANNOT_UNINSTALL_IN_USE']);
71 71
	}
......
77 77
} else {
78 78
	// Remove entry from DB
79 79
	$sql  = 'DELETE FROM `'.TABLE_PREFIX.'addons` ';
80
	$sql .= 'WHERE `directory`=\''.mysql_real_escape_string($code).'\' ';
80
	$sql .= 'WHERE `directory`=\''.$database->escapeString($code).'\' ';
81 81
	$sql .=   'AND `type`=`type`=\'language\' ';
82 82
	if( $database->query($sql) ) {
83 83
        // Print success message

Also available in: Unified diff