marinofaggiana 4 years ago
parent
commit
673c4cb863
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Main/Colleaction Common/NCCollectionCommon.swift

+ 2 - 2
iOSClient/Main/Colleaction Common/NCCollectionCommon.swift

@@ -128,7 +128,7 @@ class NCCollectionCommon: NSObject, NCSelectDelegate {
                 if viewController == nil {
                     return
                 }
-                viewController!.titleCurrentFolder = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
+                viewController!.titleCurrentFolder = (serverUrl as NSString).lastPathComponent
             } else {
                 viewController = topViewController
             }
@@ -181,7 +181,7 @@ class NCCollectionCommon: NSObject, NCSelectDelegate {
                 if viewController == nil {
                     return
                 }
-                viewController!.titleCurrentFolder = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
+                viewController!.titleCurrentFolder = (serverUrl as NSString).lastPathComponent
             } else {
                 viewController = topViewController
             }