if (isPostRequestElementSet('member_theme')) {
// Save theme to member's profile
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `curr_theme`='%s' WHERE `userid`=%s LIMIT 1",
+ sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `curr_theme`='%s' WHERE `userid`=%s LIMIT 1",
array(
postRequestElement('member_theme'),
getMemberId()
), __FILE__, __LINE__);
// Set new theme for guests
- $newTheme = SQL_ESCAPE(postRequestElement('member_theme'));
+ $newTheme = sqlEscapeString(postRequestElement('member_theme'));
// Change to new theme
setMailerTheme($newTheme);