diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/index.php | 4 | ||||
-rw-r--r-- | apps/files/templates/index.php | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index 6f22fdfdc19..62e1438fc63 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -113,7 +113,7 @@ if ($needUpgrade) { if ($trashEnabled) { $trashEmpty = \OCA\Files_Trashbin\Trashbin::isEmpty($user); } - + OCP\Util::addscript('files', 'fileactions'); OCP\Util::addscript('files', 'files'); OCP\Util::addscript('files', 'keyboardshortcuts'); @@ -133,7 +133,9 @@ if ($needUpgrade) { $tmpl->assign('isPublic', false); $tmpl->assign('publicUploadEnabled', $publicUploadEnabled); $tmpl->assign("encryptedFiles", \OCP\Util::encryptedFiles()); + $tmpl->assign("mailNotificationEnabled", \OC_Appconfig::getValue('core', 'shareapi_allow_mail_notification', 'yes')); $tmpl->assign('disableSharing', false); $tmpl->assign('ajaxLoad', $ajaxLoad); + $tmpl->printPage(); } diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 50a2720e1c0..e578a1f563c 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -116,3 +116,4 @@ <input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php p($_['allowZipDownload']); ?>" /> <input type="hidden" name="usedSpacePercent" id="usedSpacePercent" value="<?php p($_['usedSpacePercent']); ?>" /> <input type="hidden" name="encryptedFiles" id="encryptedFiles" value="<?php $_['encryptedFiles'] ? p('1') : p('0'); ?>" /> +<input type="hidden" name="mailNotificationEnabled" id="mailNotificationEnabled" value="<?php p($_['mailNotificationEnabled']) ?>" /> |