Skip to content

Commit

Permalink
Resolve #1083
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Apr 18, 2023
1 parent 5eee165 commit ad6b51f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/nextcloud/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ public function FilterAppData($bAdmin, &$aResult) : void
{
if (!$bAdmin && \is_array($aResult)) {
$sUID = \OC::$server->getUserSession()->getUser()->getUID();
$sWebDAV = \OC::$server->getURLGenerator()->linkTo('', 'remote.php') . '/dav';
$oUrlGen = \OC::$server->getURLGenerator();
$sWebDAV = $oUrlGen->getAbsoluteURL($oUrlGen->linkTo('', 'remote.php') . '/dav');
// $sWebDAV = \OCP\Util::linkToRemote('dav');
$aResult['Nextcloud'] = [
'UID' => $sUID,
Expand Down

0 comments on commit ad6b51f

Please sign in to comment.