diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-07 11:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 11:05:00 +0200 |
commit | b4deba207856e92adfbf7239ea7d2420157993dd (patch) | |
tree | 22bc71158a91e74e1d28c639c0801a735a78db76 /lib/private | |
parent | b1520a645833c2047103a2cf550f5c21b1c25586 (diff) | |
parent | ca3a6ec6077e4248d56550b1acb19ab72546e808 (diff) | |
download | nextcloud-server-b4deba207856e92adfbf7239ea7d2420157993dd.tar.gz nextcloud-server-b4deba207856e92adfbf7239ea7d2420157993dd.zip |
Merge pull request #5483 from nextcloud/issue-5075-png-files-for-activity-emails
Use PNGs for icons in activity emails
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Activity/Manager.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php index a8810a3e16b..bbb6f694156 100644 --- a/lib/private/Activity/Manager.php +++ b/lib/private/Activity/Manager.php @@ -57,6 +57,9 @@ class Manager implements IManager { /** @var int */ protected $formattingObjectId; + /** @var bool */ + protected $requirePNG; + /** @var string */ protected $currentUserId; @@ -466,6 +469,20 @@ class Manager implements IManager { } /** + * @param bool $status Set to true, when parsing events should not use SVG icons + */ + public function setRequirePNG($status) { + $this->requirePNG = $status; + } + + /** + * @return bool + */ + public function getRequirePNG() { + return $this->requirePNG; + } + + /** * @param string $app * @param string $text * @param array $params |