From 533da99dcc958f9521ca640347423a7b0738d658 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 6 Nov 2007 17:13:03 +0000 Subject: [PATCH] Monotone-Parent: 1dda8463cbff42910b1cacd540a640120d4d4939 Monotone-Revision: 56e8fb42c60b615f9c931f4b5e80a51560db4269 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-06T17:13:03 Monotone-Branch: ca.inverse.sogo --- UI/PreferencesUI/UIxJSONPreferences.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UI/PreferencesUI/UIxJSONPreferences.m b/UI/PreferencesUI/UIxJSONPreferences.m index 0b18a97b8..de9055939 100644 --- a/UI/PreferencesUI/UIxJSONPreferences.m +++ b/UI/PreferencesUI/UIxJSONPreferences.m @@ -33,14 +33,14 @@ @implementation UIxJSONPreferences -- (WOResponse *) _makeResponse: (NSString *) jsonText +- (WOResponse *) _makeResponse: (NSUserDefaults *) defaults { WOResponse *response; response = [context response]; [response setHeader: @"text/plain; charset=utf-8" forKey: @"content-type"]; - [response appendContentString: jsonText]; + [response appendContentString: [defaults jsonRepresentation]]; return response; } @@ -51,7 +51,7 @@ defaults = [[context activeUser] userDefaults]; - return [self _makeResponse: [defaults jsonRepresentation]]; + return [self _makeResponse: defaults]; } - (WOResponse *) jsonSettingsAction @@ -60,7 +60,7 @@ settings = [[context activeUser] userSettings]; - return [self _makeResponse: [settings jsonRepresentation]]; + return [self _makeResponse: settings]; } @end