diff options
author | Felix NĂ¼sse <Felix.nuesse@t-online.de> | 2018-08-27 17:39:39 +0200 |
---|---|---|
committer | fnuesse <felix.nuesse@t-online.de> | 2018-10-10 13:33:44 +0200 |
commit | 8dc449990dcd5a62e4280c1af9769582cf0a719a (patch) | |
tree | d3ec5869e532d23dc7428581a536689031eeff74 /apps/files/lib/Controller/ApiController.php | |
parent | 506f7f29bf976d7755c8f6ba448f1a22176046b7 (diff) | |
download | nextcloud-server-8dc449990dcd5a62e4280c1af9769582cf0a719a.tar.gz nextcloud-server-8dc449990dcd5a62e4280c1af9769582cf0a719a.zip |
fix for favorites-quickaccess: newly added folders dont show up when added to favorites
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'apps/files/lib/Controller/ApiController.php')
-rw-r--r-- | apps/files/lib/Controller/ApiController.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 9443b9776ae..27cd0b361c5 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -292,5 +292,17 @@ class ApiController extends Controller { return $response; } + /** + * Get sorting-order for custom sorting + * + * @NoAdminRequired + * + * @param String + * @return String + */ + public function getNodeType($folderpath) { + $node = $this->userFolder->get($folderpath); + return $node->getType(); + } } |