From 77a41be54944b32e62ef4f97ffa9570dae1aab34 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 23 Jan 2024 11:48:57 +0800 Subject: [PATCH] * zin: fix jsContext not work. --- lib/zin/core/jscontext.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/core/jscontext.class.php b/lib/zin/core/jscontext.class.php index f7343b58b3..b4ad80168e 100644 --- a/lib/zin/core/jscontext.class.php +++ b/lib/zin/core/jscontext.class.php @@ -33,7 +33,7 @@ class jsContext extends js { if(!is_string($name)) $name = '__C' . (static::$tempIndex++); $this->contextName = $name; - $this->set($name, jsRaw($value)); + $this->const($name, jsRaw($value)); } }