Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / member / what-themes.php
index 72d8ed59114d7bc7e33d6cd1f9ca152ae2608997..c2adf4c261d127c10a5cbf8e291c07927b9f2a0b 100644 (file)
@@ -52,14 +52,14 @@ if ((!isExtensionActive('theme')) && (!isAdmin())) {
 
 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);