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

Fix public links
This commit is contained in:
Michael Gapczynski 2013-05-22 15:20:15 -07:00
commit 1cfc9d269e
2 changed files with 1 additions and 2 deletions

View file

@ -1,5 +1,4 @@
<?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']);
}

View file

@ -45,7 +45,6 @@ function handleUnexpectedShutdown() {
}
}
$RUNTIME_NOSETUPFS = true;
require_once 'lib/base.php';
session_write_close();