This commit is contained in:
Lukas Reschke 2021-06-04 09:50:03 +02:00 committed by GitHub
commit 3f5d2422a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 9 deletions

View File

@ -320,15 +320,26 @@ class Sharing extends Action {
* @param array $params * @param array $params
*/ */
public function updateExpirationDate(array $params) { public function updateExpirationDate(array $params) {
$this->log( if ($params['date'] === null) {
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', $this->log(
$params, 'The expiration date of the publicly shared %s with ID "%s" has been removed',
[ $params,
'itemType', [
'itemSource', 'itemType',
'date', 'itemSource',
] ]
); );
} else {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
$params,
[
'itemType',
'itemSource',
'date',
]
);
}
} }
/** /**