From 164ffed3c220e313a41a78c386eeddc4041f8b98 Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Thu, 13 Feb 2025 13:50:46 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BD=E3=83=8B=E3=83=BC=E3=83=9A=E3=82=A4?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=81=A7=E4=BD=BF=E7=94=A8=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=82=8B=E9=96=A2=E6=95=B0=E3=82=92=20Smarty?= =?UTF-8?q?=20=E3=81=AE=20modifier=20=E3=81=AB=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see https://github.com/EC-CUBE/ec-cube2/issues/911#issuecomment-2655281305 --- data/class/SC_View.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data/class/SC_View.php b/data/class/SC_View.php index 532d35f9e2..41c8853577 100644 --- a/data/class/SC_View.php +++ b/data/class/SC_View.php @@ -72,6 +72,7 @@ public function init() $this->_smarty->registerPlugin('modifier', 'key', 'key'); $this->_smarty->registerPlugin('modifier', 'strpos', 'strpos'); $this->_smarty->registerPlugin('modifier', 'current', 'current'); + $this->_smarty->registerPlugin('modifier', 'var_dump', 'var_dump'); // XXX register_function で登録すると if で使用できないのではないか? $this->_smarty->registerPlugin('function', 'sfIsHTTPS', ['SC_Utils_Ex', 'sfIsHTTPS']); $this->_smarty->registerPlugin('function', 'sfSetErrorStyle', ['SC_Utils_Ex', 'sfSetErrorStyle']);