summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-07 15:39:17 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-07 15:39:17 +0200
commit936c8ba1cc3b36fdc122276fc9a96de4a4003bd1 (patch)
treebc78ce93b5cafaead97d054c640d2f7e88be967d /apps/files_sharing
parent5904d5cf50ba5567fac40e6fa1f1ded6a9f48bcd (diff)
downloadnextcloud-server-936c8ba1cc3b36fdc122276fc9a96de4a4003bd1.tar.gz
nextcloud-server-936c8ba1cc3b36fdc122276fc9a96de4a4003bd1.zip
improve remote.php and create public.php
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-xapps/files_sharing/appinfo/app.php2
-rw-r--r--apps/files_sharing/js/share.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index bd81a45cc55..b3b9776d297 100755
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -17,5 +17,5 @@ if ($dir != '/Shared' || OCP\Config::getAppValue('files_sharing', 'resharing', '
OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
OCP\Util::addStyle( 'files_sharing', 'sharing' );
OCP\Util::addStyle("3rdparty", "chosen/chosen");
-
+OCP\CONFIG::setAppValue('core', 'public_files', '/apps/files_sharing/get.php');
?>
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 7bfaa1f0c69..3dedde48c27 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -177,7 +177,7 @@ OC.Share={
},
showPrivateLink:function(item, token) {
$('#privateLinkCheckbox').attr('checked', true);
- var link = parent.location.protocol+'//'+location.host+OC.linkTo('files_sharing','get.php')+'?token='+token;
+ var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&token='+token;
if (token.indexOf('&path=') == -1) {
link += '&file=' + item;
} else {