|
@@ 118-150 (lines=33) @@
|
| 115 |
|
} else { |
| 116 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'add-color.svg'))); |
| 117 |
|
} |
| 118 |
|
} else if ($event->getSubject() === 'changed_by') { |
| 119 |
|
$subject = $this->l->t('Changed by {user}'); |
| 120 |
|
if ($this->activityManager->getRequirePNG()) { |
| 121 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 122 |
|
} else { |
| 123 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 124 |
|
} |
| 125 |
|
} else if ($event->getSubject() === 'deleted_by') { |
| 126 |
|
$subject = $this->l->t('Deleted by {user}'); |
| 127 |
|
if ($this->activityManager->getRequirePNG()) { |
| 128 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'delete-color.png'))); |
| 129 |
|
} else { |
| 130 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'delete-color.svg'))); |
| 131 |
|
} |
| 132 |
|
} else if ($event->getSubject() === 'restored_by') { |
| 133 |
|
$subject = $this->l->t('Restored by {user}'); |
| 134 |
|
} else if ($event->getSubject() === 'renamed_by') { |
| 135 |
|
$subject = $this->l->t('Renamed by {user}'); |
| 136 |
|
if ($this->activityManager->getRequirePNG()) { |
| 137 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 138 |
|
} else { |
| 139 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 140 |
|
} |
| 141 |
|
} else if ($event->getSubject() === 'moved_by') { |
| 142 |
|
$subject = $this->l->t('Moved by {user}'); |
| 143 |
|
if ($this->activityManager->getRequirePNG()) { |
| 144 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 145 |
|
} else { |
| 146 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 147 |
|
} |
| 148 |
|
} else { |
| 149 |
|
throw new \InvalidArgumentException(); |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
if (!isset($parsedParameters['user'])) { |
| 153 |
|
// External user via public link share |
|
@@ 223-255 (lines=33) @@
|
| 220 |
|
} |
| 221 |
|
} else if ($event->getSubject() === 'restored_self') { |
| 222 |
|
$subject = $this->l->t('You restored {file}'); |
| 223 |
|
} else if ($event->getSubject() === 'restored_by') { |
| 224 |
|
$subject = $this->l->t('{user} restored {file}'); |
| 225 |
|
} else if ($event->getSubject() === 'renamed_self') { |
| 226 |
|
$subject = $this->l->t('You renamed {oldfile} to {newfile}'); |
| 227 |
|
if ($this->activityManager->getRequirePNG()) { |
| 228 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 229 |
|
} else { |
| 230 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 231 |
|
} |
| 232 |
|
} else if ($event->getSubject() === 'renamed_by') { |
| 233 |
|
$subject = $this->l->t('{user} renamed {oldfile} to {newfile}'); |
| 234 |
|
if ($this->activityManager->getRequirePNG()) { |
| 235 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 236 |
|
} else { |
| 237 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 238 |
|
} |
| 239 |
|
} else if ($event->getSubject() === 'moved_self') { |
| 240 |
|
$subject = $this->l->t('You moved {oldfile} to {newfile}'); |
| 241 |
|
if ($this->activityManager->getRequirePNG()) { |
| 242 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 243 |
|
} else { |
| 244 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 245 |
|
} |
| 246 |
|
} else if ($event->getSubject() === 'moved_by') { |
| 247 |
|
$subject = $this->l->t('{user} moved {oldfile} to {newfile}'); |
| 248 |
|
if ($this->activityManager->getRequirePNG()) { |
| 249 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.png'))); |
| 250 |
|
} else { |
| 251 |
|
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', 'change.svg'))); |
| 252 |
|
} |
| 253 |
|
} else { |
| 254 |
|
throw new \InvalidArgumentException(); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
if (!isset($parsedParameters['user'])) { |
| 258 |
|
// External user via public link share |