From 83898e87be3486ecec76ee240a8810ce693be888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 5 Jul 2013 10:07:23 +0200 Subject: [PATCH 1/2] Merge https://github.com/owncloud/core/pull/3900 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Squashed commit of the following: commit a34098427720c2d0470367cd9698c184d85b8dfd Merge: ccf849b 955646c Author: Björn Schießle Date: Fri Jul 5 09:59:29 2013 +0200 Merge branch 'master' into theme_aware_mail_footer commit ccf849bc6f18d80cdb593e851529b87579fe072b Merge: 8d5fb70 3c1308f Author: Björn Schießle Date: Thu Jul 4 11:03:47 2013 +0200 Merge branch 'master' into theme_aware_mail_footer commit 8d5fb70e6dcb2e2e34dcdf2a883680ef034afeea Author: Björn Schießle Date: Thu Jul 4 10:38:39 2013 +0200 switch to non-static defaults.php commit 88ab2768dcc4ced12c48872c887baa94ad938d62 Merge: e199df8 84c25f9 Author: Björn Schießle Date: Wed Jul 3 16:59:48 2013 +0200 Merge branch 'theme_aware_mail_footer' of github.com:owncloud/core into theme_aware_mail_footer Conflicts: core/templates/altmail.php commit e199df844b5faf80a36d8380a5b0b58025cd425f Author: Björn Schießle Date: Wed Jul 3 16:56:29 2013 +0200 name and slogan should be in one line commit 84c25f9853e1bfbe4ae780371b1353aafb6b15c2 Author: Thomas Müller Date: Mon Jul 1 21:15:35 2013 +0200 no ?> at the end of a file commit 3bd8d38d011f62ce78bcd0c108eb8cf2ce97eb99 Author: Björn Schießle Date: Mon Jul 1 12:58:36 2013 +0200 print url unescaped commit d304ed18c8b7350e92e24565b9b9ba77b519d74c Author: Björn Schießle Date: Mon Jul 1 12:56:05 2013 +0200 make new mail templates aware of different ownCloud themes --- core/templates/altmail.php | 8 ++++---- core/templates/mail.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/templates/altmail.php b/core/templates/altmail.php index 37dc8eee94..a7df29a244 100644 --- a/core/templates/altmail.php +++ b/core/templates/altmail.php @@ -1,9 +1,9 @@ t("Hey there,\n\njust letting you know that %s shared %s with you.\nView it: %s\n\nCheers!", array($_['user_displayname'], $_['filename'], $_['link']))); ?> -- -ownCloud - t("web services under your control")); -?> -http://ownCloud.org +getName() . ' - ' . $defaults->getSlogan()); ?> +getBaseUrl()); diff --git a/core/templates/mail.php b/core/templates/mail.php index ebeefd5c7e..562ad82e95 100644 --- a/core/templates/mail.php +++ b/core/templates/mail.php @@ -1,3 +1,4 @@ +
@@ -20,10 +21,9 @@ print_unescaped($l->t('Hey there,

just letting you know that %s shared » +getName()); ?> - +getSlogan()); ?> +
getBaseUrl());?> From 27c0cc7fda6c722a201ac8a549b855663cf9c68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 5 Jul 2013 11:23:08 +0200 Subject: [PATCH 2/2] no anonymous upload on read-only folders --- core/js/share.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/core/js/share.js b/core/js/share.js index 588202d227..9494637c3d 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -163,10 +163,10 @@ OC.Share={ var allowPublicUploadStatus = false; $.each(data.shares, function(key, value) { - if (allowPublicUploadStatus) { - return true; - } - allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false; + if (allowPublicUploadStatus) { + return true; + } + allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false; }); html += ''; @@ -181,11 +181,13 @@ OC.Share={ html += '
'; html += ''; html += '
'; - html += ''; - html += ''; + if (possiblePermissions & OC.PERMISSION_CREATE) { + html += ''; + } + html += ''; html += ''; html += ''; html += '';
  --
-ownCloud - t('web services under your control')); -?> -
http://ownCloud.org