Browse Source

missing renames of publicListView to disableSharing

tags/v5.0.0alpha1
Thomas Mueller 11 years ago
parent
commit
5fadd53088
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      apps/files_sharing/js/share.js
  2. 1
    1
      apps/files_sharing/public.php

+ 1
- 1
apps/files_sharing/js/share.js View File

@@ -1,6 +1,6 @@
$(document).ready(function() {

if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined' && !publicListView) {
if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined' && !disableSharing) {

FileActions.register('all', 'Share', OC.PERMISSION_READ, OC.imagePath('core', 'actions/share'), function(filename) {
if ($('#dir').val() == '/') {

+ 1
- 1
apps/files_sharing/public.php View File

@@ -257,7 +257,7 @@ if ($linkItem) {

$list = new OCP\Template('files', 'part.list', '');
$list->assign('files', $files, false);
$list->assign('publicListView', true);
$list->assign('disableSharing', true);
$list->assign('baseURL', OCP\Util::linkToPublic('files').$urlLinkIdentifiers.'&path=', false);
$list->assign('downloadURL', OCP\Util::linkToPublic('files').$urlLinkIdentifiers.'&download&path=', false);
$breadcrumbNav = new OCP\Template('files', 'part.breadcrumb', '' );

Loading…
Cancel
Save