 
 			$smcFunc['db_query']('', '
 				UPDATE {db_prefix}custom_fields
-				SET field_order = {INT:field_count}
-				WHERE id_field = {INT:id_field}',
+				SET field_order = {int:field_count}
+				WHERE id_field = {int:id_field}',
 				array(
 					'field_count' => $fields_count,
 					'id_field' => $row['id_field'],

		// Old School?
		if (empty($row['file_hash']))
		{
			// Remove INTernational CHARacters (windows-1252)
			// These lines should never be needed again. Still, behave.
			if (empty($db_character_set) || $db_character_set != 'utf8')
			{

	if (!empty($inserts))
		$smcFunc['db_insert']('replace',
			'{db_prefix}themes',
			array('id_member' => 'int', 'id_theme' => 'int', 'variable' => 'string', 'value' => 'string'),
			$inserts,
			array('id_theme', 'id_member', 'variable')
		);
