From 7f6683e1308b48140289a6bfc10eebe4322732c9 Mon Sep 17 00:00:00 2001 From: touol Date: Thu, 14 Nov 2019 23:09:51 +0700 Subject: [PATCH] MODX_SOFT_MODE for MODX, when compiling a Fenom tag error, enables the output of this tag as is. To inverse JS / JSON. --- src/Fenom.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Fenom.php b/src/Fenom.php index 5be531b..c3ad60a 100644 --- a/src/Fenom.php +++ b/src/Fenom.php @@ -40,6 +40,7 @@ class Fenom const AUTO_TRIM = 0x1000; // reserved const DENY_PHP_CALLS = 0x2000; const AUTO_STRIP = 0x4000; + const MODX_SOFT_MODE = 0x8000; //This option for MODX, when compiling a Fenom tag error, enables the output of this tag as is. To inverse JS / JSON. /** * Use DENY_PHP_CALLS * @deprecated @@ -87,6 +88,7 @@ class Fenom "disable_php_calls" => self::DENY_PHP_CALLS, "disable_statics" => self::DENY_STATICS, "strip" => self::AUTO_STRIP, + "modx_soft_mode" => self::MODX_SOFT_MODE, ); /**