diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-08-12 16:04:24 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-08-12 16:04:24 +0200 |
commit | ab324b42a3223b882145852c49a17bfa72099174 (patch) | |
tree | b0019f01f659507fae0dda8b2dd012c220e7c58a /app/class/Config.php | |
parent | b6f136a62e36fea3d5eb87b90efcff5e68c9f81c (diff) | |
download | wcms-ab324b42a3223b882145852c49a17bfa72099174.tar.gz wcms-ab324b42a3223b882145852c49a17bfa72099174.zip |
close #119 config param to disable md hard wrap
Diffstat (limited to 'app/class/Config.php')
-rw-r--r-- | app/class/Config.php | 13 |
1 files changed, 13 insertions, 0 deletions
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); + } + |