diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-05 10:34:24 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-05 13:59:45 +0200 |
commit | 9b05413bcbbaa69ec6587ade1d3566552e0f3eb3 (patch) | |
tree | 966710d87a7692cd0a4d63418c150657d61e180a /apps/files/lib | |
parent | feef3cbba03c4517b25a60820e8c4534b0a02b67 (diff) | |
download | nextcloud-server-9b05413bcbbaa69ec6587ade1d3566552e0f3eb3.tar.gz nextcloud-server-9b05413bcbbaa69ec6587ade1d3566552e0f3eb3.zip |
Show the new dav url in the web UI
Fixes #8795
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index fa8243822a8..7cb0f112f72 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -175,6 +175,12 @@ class ViewController extends Controller { }); $nav->assign('navigationItems', $navItems); + $webdavurl = $this->urlGenerator->linkTo('', 'remote.php') . + '/dav/files/' . + $this->userSession->getUser()->getUID() . + '/'; + $webdavurl = $this->urlGenerator->getAbsoluteURL($webdavurl); + $nav->assign('webdavurl', $webdavurl); $nav->assign('usage', \OC_Helper::humanFileSize($storageInfo['used'])); if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) { |