diff options
Diffstat (limited to 'apps/files_sharing/lib/Activity/Providers/Groups.php')
-rw-r--r-- | apps/files_sharing/lib/Activity/Providers/Groups.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Activity/Providers/Groups.php b/apps/files_sharing/lib/Activity/Providers/Groups.php index 06ccdaa98b3..683927d5735 100644 --- a/apps/files_sharing/lib/Activity/Providers/Groups.php +++ b/apps/files_sharing/lib/Activity/Providers/Groups.php @@ -51,7 +51,11 @@ class Groups extends Base { throw new \InvalidArgumentException(); } - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + } $this->setSubjects($event, $subject, $parsedParameters); return $event; @@ -78,7 +82,11 @@ class Groups extends Base { throw new \InvalidArgumentException(); } - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + } $this->setSubjects($event, $subject, $parsedParameters); return $event; |