summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-09 15:52:17 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-09 15:52:17 +0100
commit402e0afbc51b08427eb8e43d0377422fa684a623 (patch)
treead85e106b46208205dd8887362c5dcec5cc3f754 /lib/private/share
parent37c5edc20211861297c50f59cbe26bdc5d3b1970 (diff)
downloadnextcloud-server-402e0afbc51b08427eb8e43d0377422fa684a623.tar.gz
nextcloud-server-402e0afbc51b08427eb8e43d0377422fa684a623.zip
Fix Error message when sharing outside of group
For #19788
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 0693a9c08fb..4503818a9ec 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -697,8 +697,8 @@ class Share extends Constants {
if (empty($inGroup)) {
$message = 'Sharing %s failed, because the user '
.'%s is not a member of any groups that %s is a member of';
- $message_t = $l->t('Sharing %s failed, because the user %s is not a member of any groups that %s is a member of', array($itemSourceName, $shareWith, $uidOwner));
- \OCP\Util::writeLog('OCP\Share', sprintf($message, $itemSourceName, $shareWith, $uidOwner), \OCP\Util::DEBUG);
+ $message_t = $l->t('Sharing %s failed, because the user %s is not a member of any groups that %s is a member of', array($itemName, $shareWith, $uidOwner));
+ \OCP\Util::writeLog('OCP\Share', sprintf($message, $itemName, $shareWith, $uidOwner), \OCP\Util::DEBUG);
throw new \Exception($message_t);
}
}