summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-04-24 01:42:18 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-04-24 01:42:18 +0200
commitff0dab6e92f71dab31d902d2ae9a6ba87f0cea88 (patch)
treee985878d23312a11f2e0472358d641ee08bcf48b /lib/private/share
parent645ecb76448a1452905f8aae6b59ec2bda37653b (diff)
downloadnextcloud-server-ff0dab6e92f71dab31d902d2ae9a6ba87f0cea88.tar.gz
nextcloud-server-ff0dab6e92f71dab31d902d2ae9a6ba87f0cea88.zip
This adds one more missing untranslated text from lib/share
Also displays the untrusted domain warning in English
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 3751b035bd4..fe756b5ae7f 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -477,9 +477,10 @@ class Share extends \OC\Share\Constants {
if ($itemType === 'file' or $itemType === 'folder') {
$path = \OC\Files\Filesystem::getPath($itemSource);
if (!$path) {
- $message = 'Sharing ' . $itemSourceName . ' failed, because the file does not exist';
- \OC_Log::write('OCP\Share', $message, \OC_Log::ERROR);
- throw new \Exception($message);
+ $message = 'Sharing %s failed, because the file does not exist';
+ $message_t = $l->t('Sharing %s failed, because the file does not exist', array($itemSourceName));
+ \OC_Log::write('OCP\Share', sprintf($message, $itemSourceName), \OC_Log::ERROR);
+ throw new \Exception($message_t);
}
}