From ab324b42a3223b882145852c49a17bfa72099174 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 12 Aug 2020 16:04:24 +0200 Subject: close #119 config param to disable md hard wrap --- app/class/Config.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/class/Config.php') diff --git a/app/class/Config.php b/app/class/Config.php index c7d1a78..5c5fe76 100644 --- a/app/class/Config.php +++ b/app/class/Config.php @@ -36,6 +36,9 @@ abstract class Config /** @var string|false $debug */ protected static $debug = false; + /** Database config */ + protected static $markdownhardwrap = true; + public const SECRET_KEY_MIN = 16; public const SECRET_KEY_MAX = 128; @@ -276,6 +279,11 @@ abstract class Config return self::$debug; } + public static function markdownhardwrap() + { + return self::$markdownhardwrap; + } + // __________________________________________ S E T ______________________________________ @@ -481,6 +489,11 @@ abstract class Config } } + public static function setmarkdownhardwrap($markdownhardwrap) + { + self::$markdownhardwrap = boolval($markdownhardwrap); + } + -- cgit v1.2.3