diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-08-12 17:43:19 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-08-12 17:43:19 +0200 |
commit | 2722f77adf442481fb37f795e92ac8af672b2ed1 (patch) | |
tree | 20ec1fe296e66276cc852e1d88e7da3f96052a19 /app/class/Config.php | |
parent | ab324b42a3223b882145852c49a17bfa72099174 (diff) | |
download | wcms-2722f77adf442481fb37f795e92ac8af672b2ed1.tar.gz wcms-2722f77adf442481fb37f795e92ac8af672b2ed1.zip |
disable javascript config option, close #114
Diffstat (limited to 'app/class/Config.php')
-rw-r--r-- | app/class/Config.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/class/Config.php b/app/class/Config.php index 5c5fe76..7b2b50c 100644 --- a/app/class/Config.php +++ b/app/class/Config.php @@ -39,6 +39,12 @@ abstract class Config /** Database config */ protected static $markdownhardwrap = true; + + /** Site config */ + protected static $disablejavascript = false; + + + public const SECRET_KEY_MIN = 16; public const SECRET_KEY_MAX = 128; @@ -284,6 +290,11 @@ abstract class Config return self::$markdownhardwrap; } + public static function disablejavascript() + { + return self::$disablejavascript; + } + // __________________________________________ S E T ______________________________________ @@ -494,7 +505,10 @@ abstract class Config self::$markdownhardwrap = boolval($markdownhardwrap); } - + public static function setdisablejavascript($disablejavascript) + { + self::$disablejavascript = boolval($disablejavascript); + } |