Skip to content
Snippets Groups Projects
Commit 1cfc9d26 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Merge pull request #3457 from owncloud/fix-share-links

Fix public links
parents 26732eca 9b622bde
Branches
No related tags found
No related merge requests found
<?php
$RUNTIME_NOSETUPFS = true;
// Load other apps for file previews
OC_App::loadApps();
......@@ -46,6 +45,7 @@ if (isset($_GET['t'])) {
$fileOwner = $shareOwner;
}
if (isset($fileOwner)) {
OC_Util::tearDownFS();
OC_Util::setupFS($fileOwner);
$path = \OC\Files\Filesystem::getPath($linkItem['file_source']);
}
......
......@@ -45,7 +45,6 @@ function handleUnexpectedShutdown() {
}
}
$RUNTIME_NOSETUPFS = true;
require_once 'lib/base.php';
session_write_close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment