mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
typo fix from transifex suggestion
This commit is contained in:
parent
a72dae6842
commit
173538befb
1 changed files with 2 additions and 2 deletions
|
|
@ -956,8 +956,8 @@ 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 = '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));
|
||||
$warning = 'Cannot set expiration date. Shares cannot expire later than ' . $maxDays . ' after they have been shared';
|
||||
$warning_t = $l->t('Cannot set expiration date. Shares cannot expire later than %s after they have been shared', array($maxDays));
|
||||
\OCP\Util::writeLog('OCP\Share', $warning, \OCP\Util::WARN);
|
||||
throw new \Exception($warning_t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue