diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-20 13:48:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-20 13:48:51 +0200 |
commit | 90fa27694a6f454820487dcb1ca4e4ceec90a9a1 (patch) | |
tree | ec6821e7aff73031293a9ef3f6a56a3baa672630 /apps/comments/lib/Activity | |
parent | 8b0546e3f9741980ee2c63b3aca04392408b2e02 (diff) | |
download | nextcloud-server-90fa27694a6f454820487dcb1ca4e4ceec90a9a1.tar.gz nextcloud-server-90fa27694a6f454820487dcb1ca4e4ceec90a9a1.zip |
Use PNG version of the icons for shipped activities
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib/Activity')
-rw-r--r-- | apps/comments/lib/Activity/Provider.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php index c55982827b3..7bf686e796e 100644 --- a/apps/comments/lib/Activity/Provider.php +++ b/apps/comments/lib/Activity/Provider.php @@ -87,7 +87,11 @@ class Provider implements IProvider { if ($event->getSubject() === 'add_comment_subject') { $this->parseMessage($event); - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg'))); + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg'))); + } if ($this->activityManager->isFormattingFilteredObject()) { try { |