diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-12-22 12:58:21 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-12-22 12:58:21 +0300 |
commit | a5bc1b261dd46152a76c4fc23abaeb0a7043e28a (patch) | |
tree | 5017ba9fc9175a1cd0e80990bb0971ae02a6f7e9 /Share | |
parent | e82aa8225a85c9fbf7e787cb2d5986847768782a (diff) |
clear code
Diffstat (limited to 'Share')
-rw-r--r-- | Share/NCSelectDestination.m | 2 | ||||
-rw-r--r-- | Share/ShareViewController.m | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Share/NCSelectDestination.m b/Share/NCSelectDestination.m index 214cecfa8..ab185b9fa 100644 --- a/Share/NCSelectDestination.m +++ b/Share/NCSelectDestination.m @@ -69,7 +69,7 @@ if (![_serverUrl length]) { - _serverUrl = [[NCUtility shared] getHomeServerWithUrlBase:urlBase account:account]; + _serverUrl = [[NCUtilityFileSystem shared] getHomeServerWithUrlBase:urlBase account:account]; [self.navigationController.navigationBar.topItem setTitleView:[[UIImageView alloc] initWithImage: [UIImage imageNamed:@"themingLogo"]]]; self.title = @"Home"; diff --git a/Share/ShareViewController.m b/Share/ShareViewController.m index 51077bcef..a44028f63 100644 --- a/Share/ShareViewController.m +++ b/Share/ShareViewController.m @@ -62,7 +62,7 @@ } else { NSInteger serverVersionMajor = [[NCManageDatabase shared] getCapabilitiesServerIntWithAccount:tableAccount.account elements:NCElementsJSON.shared.capabilitiesVersionMajor]; - NSString *webDav = [[NCUtility shared] getWebDAVWithAccount:tableAccount.account]; + NSString *webDav = [[NCUtilityFileSystem shared] getWebDAVWithAccount:tableAccount.account]; // Networking [[NCCommunicationCommon shared] setupWithAccount:tableAccount.account user:tableAccount.user userId:tableAccount.userID password:[CCUtility getPassword:tableAccount.account] urlBase:tableAccount.urlBase userAgent:[CCUtility getUserAgent] webDav:webDav dav:nil nextcloudVersion:serverVersionMajor delegate:[NCNetworking shared]]; @@ -84,7 +84,7 @@ [CCUtility setAccountExt:self.account]; - _serverUrl = [[NCUtility shared] getHomeServerWithUrlBase:tableAccount.urlBase account:tableAccount.account]; + _serverUrl = [[NCUtilityFileSystem shared] getHomeServerWithUrlBase:tableAccount.urlBase account:tableAccount.account]; [CCUtility setServerUrlExt:_serverUrl]; _destinyFolderButton.title = [NSString stringWithFormat:NSLocalizedString(@"_destiny_folder_", nil), NSLocalizedString(@"_home_", nil)]; @@ -180,7 +180,7 @@ NSString *themingColor = [[NCManageDatabase shared] getCapabilitiesServerStringWithAccount:self.account elements:NCElementsJSON.shared.capabilitiesThemingColor]; NSString *themingColorElement = [[NCManageDatabase shared] getCapabilitiesServerStringWithAccount:self.account elements:NCElementsJSON.shared.capabilitiesThemingColorElement]; NSString *themingColorText = [[NCManageDatabase shared] getCapabilitiesServerStringWithAccount:self.account elements:NCElementsJSON.shared.capabilitiesThemingColorText]; - [NCUtility.shared settingThemingColor:themingColor themingColorElement:themingColorElement themingColorText:themingColorText]; + [NCBrandColor.shared settingBrandColor:themingColor themingColorElement:themingColorElement themingColorText:themingColorText]; } self.navigationController.navigationBar.barTintColor = NCBrandColor.shared.brand; @@ -270,7 +270,7 @@ // <-- - NSString *fileNameForUpload = [[NCUtility shared] createFileName:fileName serverUrl:self.serverUrl account:self.account]; + NSString *fileNameForUpload = [[NCUtilityFileSystem shared] createFileName:fileName serverUrl:self.serverUrl account:self.account]; NSString *fileNameServer = [NSString stringWithFormat:@"%@/%@", self.serverUrl, fileNameForUpload]; [[NCCommunication shared] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil customUserAgent:nil addCustomHeaders:nil taskHandler:^(NSURLSessionTask *task) { |