summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorjfd <jfd@lance>2012-08-25 03:13:59 +0200
committerjfd <jfd@lance>2012-08-25 03:13:59 +0200
commitdc3bec62113b39254c4488b0502d7852328fdc84 (patch)
treef2aaf10908d5d666d3b894befe6c02382f4f10d9 /apps/files_sharing
parente8ffd5c04249f84770e618eeb57f39c2e93afe35 (diff)
downloadnextcloud-server-dc3bec62113b39254c4488b0502d7852328fdc84.tar.gz
nextcloud-server-dc3bec62113b39254c4488b0502d7852328fdc84.zip
OC_Share no longer exists. remove hooks that would trigger require_once / autoloading failures, so i can at least upload files
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/get.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index 1d219719b2d..bcbe5985fb6 100644
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -4,6 +4,7 @@ $RUNTIME_APPTYPES=array('authentication');
OC_App::loadApps($RUNTIME_APPTYPES);
OCP\JSON::checkAppEnabled('files_sharing');
+//FIXME lib_share / OC_Share no longer exists
require_once 'lib_share.php';
//get the path of the shared file
@@ -75,6 +76,7 @@ if (isset($_GET['token']) && $source = OC_Share::getSource($_GET['token'])) {
header("Content-Length: " . OC_Filesystem::filesize($source));
//download the file
@ob_clean();
+ //FIXME OC_Share no longer exists
OCP\Util::emitHook('OC_Share', 'public-download', array('source'=>$source, 'token'=>$token));
OC_Filesystem::readfile($source);
}