Add a flag to allow checking if SVGs are okay

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-06-20 12:40:45 +02:00
parent 36e3f3cc2a
commit 43964d99ee
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 29 additions and 0 deletions

View 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

View 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