From 8b0546e3f9741980ee2c63b3aca04392408b2e02 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 20 Jun 2017 12:40:45 +0200 Subject: Add a flag to allow checking if SVGs are okay Signed-off-by: Joas Schilling --- lib/private/Activity/Manager.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/private/Activity/Manager.php') 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; @@ -465,6 +468,20 @@ class Manager implements IManager { && $this->formattingObjectId === $this->request->getParam('object_id'); } + /** + * @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 -- cgit v1.2.3