]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add a flag to allow checking if SVGs are okay
authorJoas Schilling <coding@schilljs.com>
Tue, 20 Jun 2017 10:40:45 +0000 (12:40 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 7 Jul 2017 09:16:37 +0000 (11:16 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Activity/Manager.php
lib/public/Activity/IManager.php

index a8810a3e16b1d2a1ba10c617dd189bf30e8bd3d0..bbb6f6941567586171c3b1ed1ddf5cc42073b565 100644 (file)
@@ -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
index f5b495807c5790f35af8fb0812520a70168f1892..4cdea0e2f74e4eea0c9c162d33477e0aaae6132c 100644 (file)
@@ -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