diff options
author | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-08-01 01:39:52 +0200 |
---|---|---|
committer | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-08-01 01:39:52 +0200 |
commit | 5f015067f442cc498f4e8d0634a2ee5719398528 (patch) | |
tree | 8a2f1e0de1a4d3dfb55dd781ddbc158b29f862cb /lib/private/share | |
parent | 90d8f42d7c5b8c8c064af8ab74e181d5e5471522 (diff) | |
download | nextcloud-server-5f015067f442cc498f4e8d0634a2ee5719398528.tar.gz nextcloud-server-5f015067f442cc498f4e8d0634a2ee5719398528.zip |
suggestions by deepdiver
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/share.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 88a28adb75b..4b5724688d3 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -955,16 +955,16 @@ class Share extends \OC\Share\Constants { $maxDays = \OCP\Config::getAppValue('core', 'shareapi_expire_after_n_days', '7'); $maxDate->add(new \DateInterval('P' . $maxDays . 'D')); if ($date > $maxDate) { - $warning = 'Can not set expire date. Shares can not expire later than ' . $maxDays . ' after they where shared'; - $warning_t = $l->t('Can not set expire date. Shares can not expire later than %s after they where shared', array($maxDays)); + $warning = 'Cannot set expiration date. Shares cannot expire later than ' . $maxDays . ' after they where shared'; + $warning_t = $l->t('Cannot set expiration date. Shares cannot expire later than %s after they where shared', array($maxDays)); \OCP\Util::writeLog('OCP\Share', $warning, \OCP\Util::WARN); throw new \Exception($warning_t); } } if ($date < $today) { - $message = 'Can not set expire date. Expire date is in the past'; - $message_t = $l->t('Can not set expire date. Expire date is in the past'); + $message = 'Cannot set expiration date. Expire date is in the past'; + $message_t = $l->t('Cannot set expiration date. Expire date is in the past'); \OCP\Util::writeLog('OCP\Share', $message, \OCP\Util::WARN); throw new \Exception($message_t); } |