summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-07-24 09:35:33 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-07-24 09:35:33 +0200
commit1a73e607bdba6d654936bde632acaa4960dec729 (patch)
tree66e80e3fad82a91dd402582e08f0a97775a93502 /apps/files_sharing
parent7242480049d1fcc32fba0d1acb7c8572d7b9350f (diff)
parent7bb6aab8eea731840d67d5e3aa302c04a593a4e0 (diff)
downloadnextcloud-server-1a73e607bdba6d654936bde632acaa4960dec729.tar.gz
nextcloud-server-1a73e607bdba6d654936bde632acaa4960dec729.zip
Merge branch 'master' into more-themable-strings
Conflicts: lib/template.php
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/l10n/de.php1
-rw-r--r--apps/files_sharing/l10n/es_AR.php1
-rw-r--r--apps/files_sharing/l10n/fi_FI.php1
-rw-r--r--apps/files_sharing/l10n/nb_NO.php1
-rw-r--r--apps/files_sharing/l10n/nl.php1
-rw-r--r--apps/files_sharing/l10n/pt_PT.php1
-rw-r--r--apps/files_sharing/l10n/sv.php1
-rw-r--r--apps/files_sharing/public.php4
-rw-r--r--apps/files_sharing/templates/authenticate.php2
9 files changed, 12 insertions, 1 deletions
diff --git a/apps/files_sharing/l10n/de.php b/apps/files_sharing/l10n/de.php
index 0854152907d..ad2d171aa9f 100644
--- a/apps/files_sharing/l10n/de.php
+++ b/apps/files_sharing/l10n/de.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "Bitte überprüfen sie Ihr Passwort und versuchen Sie es erneut.",
"Password" => "Passwort",
"Submit" => "Absenden",
"%s shared the folder %s with you" => "%s hat den Ordner %s mit Dir geteilt",
diff --git a/apps/files_sharing/l10n/es_AR.php b/apps/files_sharing/l10n/es_AR.php
index defbaa7ff92..90bfe704d22 100644
--- a/apps/files_sharing/l10n/es_AR.php
+++ b/apps/files_sharing/l10n/es_AR.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "La contraseña no es correcta. Probá de nuevo.",
"Password" => "Contraseña",
"Submit" => "Enviar",
"%s shared the folder %s with you" => "%s compartió la carpeta %s con vos",
diff --git a/apps/files_sharing/l10n/fi_FI.php b/apps/files_sharing/l10n/fi_FI.php
index 03931bf2986..370cbd98744 100644
--- a/apps/files_sharing/l10n/fi_FI.php
+++ b/apps/files_sharing/l10n/fi_FI.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "Väärä salasana. Yritä uudelleen.",
"Password" => "Salasana",
"Submit" => "Lähetä",
"%s shared the folder %s with you" => "%s jakoi kansion %s kanssasi",
diff --git a/apps/files_sharing/l10n/nb_NO.php b/apps/files_sharing/l10n/nb_NO.php
index 9c736f97d78..65eadd3ccae 100644
--- a/apps/files_sharing/l10n/nb_NO.php
+++ b/apps/files_sharing/l10n/nb_NO.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "Passordet er feil. Prøv på nytt.",
"Password" => "Passord",
"Submit" => "Send inn",
"%s shared the folder %s with you" => "%s delte mappen %s med deg",
diff --git a/apps/files_sharing/l10n/nl.php b/apps/files_sharing/l10n/nl.php
index 6c1bf7a53f3..90f2f2290ff 100644
--- a/apps/files_sharing/l10n/nl.php
+++ b/apps/files_sharing/l10n/nl.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "Wachtwoord ongeldig. Probeer het nogmaals.",
"Password" => "Wachtwoord",
"Submit" => "Verzenden",
"%s shared the folder %s with you" => "%s deelt de map %s met u",
diff --git a/apps/files_sharing/l10n/pt_PT.php b/apps/files_sharing/l10n/pt_PT.php
index 2f41abca1f5..8b02e736062 100644
--- a/apps/files_sharing/l10n/pt_PT.php
+++ b/apps/files_sharing/l10n/pt_PT.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "Password errada, por favor tente de novo",
"Password" => "Password",
"Submit" => "Submeter",
"%s shared the folder %s with you" => "%s partilhou a pasta %s consigo",
diff --git a/apps/files_sharing/l10n/sv.php b/apps/files_sharing/l10n/sv.php
index 21e4e542d8e..dac5e33ec50 100644
--- a/apps/files_sharing/l10n/sv.php
+++ b/apps/files_sharing/l10n/sv.php
@@ -1,4 +1,5 @@
<?php $TRANSLATIONS = array(
+"The password is wrong. Try again." => "Lösenordet är fel. Försök igen.",
"Password" => "Lösenord",
"Submit" => "Skicka",
"%s shared the folder %s with you" => "%s delade mappen %s med dig",
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 9462844a82b..3f8e29345a7 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -137,6 +137,9 @@ if (isset($path)) {
if (\OCP\App::isEnabled('files_encryption')) {
$allowPublicUploadEnabled = false;
}
+ if (OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes') === 'no') {
+ $allowPublicUploadEnabled = false;
+ }
if ($linkItem['item_type'] !== 'folder') {
$allowPublicUploadEnabled = false;
}
@@ -202,6 +205,7 @@ if (isset($path)) {
$folder->assign('isCreatable', false);
$folder->assign('permissions', OCP\PERMISSION_READ);
$folder->assign('isPublic',true);
+ $folder->assign('publicUploadEnabled', 'no');
$folder->assign('files', $files);
$folder->assign('uploadMaxFilesize', $maxUploadFilesize);
$folder->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
diff --git a/apps/files_sharing/templates/authenticate.php b/apps/files_sharing/templates/authenticate.php
index fa03f419130..2c89b5df3f6 100644
--- a/apps/files_sharing/templates/authenticate.php
+++ b/apps/files_sharing/templates/authenticate.php
@@ -1,6 +1,6 @@
<form action="<?php p($_['URL']); ?>" method="post">
<fieldset>
- <?php if ($_['wrongpw']): ?>
+ <?php if (isset($_['wrongpw'])): ?>
<div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
<?php endif; ?>
<p class="infield">