aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-13 18:44:14 +0200
committerJoas Schilling <coding@schilljs.com>2017-06-13 18:44:50 +0200
commit0f8c1b13a39541fecdb149f41e9904d89a60ea64 (patch)
tree23cccc41c6cbf8e88f6dc19d53fc0e737b7b4fa3 /lib/private
parent72ccab0ab69ec9b23f90a0a908a9861c11323e94 (diff)
downloadnextcloud-server-0f8c1b13a39541fecdb149f41e9904d89a60ea64.tar.gz
nextcloud-server-0f8c1b13a39541fecdb149f41e9904d89a60ea64.zip
Fix unknown share token
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Share20/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 06d03f2ec7c..57ba39d41f6 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1090,7 +1090,7 @@ class Manager implements IManager {
}
if ($share === null) {
- throw new ShareNotFound();
+ throw new ShareNotFound($this->l->t('The requested share does not exist anymore'));
}
$this->checkExpireDate($share);
@@ -1110,7 +1110,7 @@ class Manager implements IManager {
if ($share->getExpirationDate() !== null &&
$share->getExpirationDate() <= new \DateTime()) {
$this->deleteShare($share);
- throw new ShareNotFound();
+ throw new ShareNotFound($this->l->t('The requested share does not exist anymore'));
}
}