From: Joas Schilling Date: Tue, 20 Jun 2017 10:40:45 +0000 (+0200) Subject: Add a flag to allow checking if SVGs are okay X-Git-Tag: v12.0.1RC1~25^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43964d99eeb07ad02f5bdb5aafac22859e9a3d85;p=nextcloud-server.git Add a flag to allow checking if SVGs are okay Signed-off-by: Joas Schilling --- 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 diff --git a/lib/public/Activity/IManager.php b/lib/public/Activity/IManager.php index f5b495807c5..4cdea0e2f74 100644 --- a/lib/public/Activity/IManager.php +++ b/lib/public/Activity/IManager.php @@ -206,6 +206,18 @@ interface IManager { */ public function isFormattingFilteredObject(); + /** + * @param bool $status Set to true, when parsing events should not use SVG icons + * @since 12.0.1 + */ + public function setRequirePNG($status); + + /** + * @return bool + * @since 12.0.1 + */ + public function getRequirePNG(); + /** * @param string $app * @param string $text