Skip to content
Snippets Groups Projects
Commit 79ecaabf authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

small refactoring

parent a7c7d3ea
No related branches found
No related tags found
No related merge requests found
...@@ -319,11 +319,7 @@ class OwncloudFile implements FileType ...@@ -319,11 +319,7 @@ class OwncloudFile implements FileType
*/ */
public function convertToStandardFile() public function convertToStandardFile()
{ {
$url = Config::get()->OWNCLOUD_ENDPOINT ?: UserConfig::get($GLOBALS['user']->id)->OWNCLOUD_ENDPOINT_USER; $webdav = OwncloudFolder::getWebDavURL();
if ($url[strlen($url) - 1] !== "/") {
$url .= "/";
}
$webdav = $url . "remote.php/webdav/";
$header = array(); $header = array();
$header[] = OwnCloudFolder::getAuthHeader(); $header[] = OwnCloudFolder::getAuthHeader();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment