mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-07 20:45:28 +00:00
Monotone-Parent: 1dda8463cbff42910b1cacd540a640120d4d4939
Monotone-Revision: 56e8fb42c60b615f9c931f4b5e80a51560db4269 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-06T17:13:03 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user