From ce8445dae5867613e4664c54bdd78396a2166c01 Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Mon, 1 Feb 2021 16:51:54 +0900 Subject: [PATCH] =?UTF-8?q?Smarty=20=E3=81=AE=E3=82=B3=E3=83=B3=E3=83=91?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E5=87=BA=E5=8A=9B=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E3=81=AF=20E=5FWARNING=20=E5=8F=8A=E3=81=B3=20E=5FNOT?= =?UTF-8?q?ICE=20=E3=82=92=E6=8A=91=E5=88=B6=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - see https://github.com/smarty-php/smarty/issues/605#issuecomment-742832333 - Smarty のテストケースでも抑制している(https://github.com/smarty-php/smarty/pull/608/files) --- data/class/SC_View.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/class/SC_View.php b/data/class/SC_View.php index ffc0c8143b..a988525dd9 100644 --- a/data/class/SC_View.php +++ b/data/class/SC_View.php @@ -42,7 +42,8 @@ public function init() { // include_phpの利用のためSmartyBCを呼び出す、ホントはinclude_phpをなくしたいそうすれば、blank.tplもなくせる $this->_smarty = new SmartyBC; - + // see https://github.com/smarty-php/smarty/issues/605#issuecomment-742832333 + $this->_smarty->setErrorReporting(E_ALL & ~E_WARNING & ~E_NOTICE); $this->_smarty->left_delimiter = ''; $this->_smarty->registerPlugin('modifier', 'sfDispDBDate', function ($dbdate, $time = true) { return SC_Utils_Ex::sfDispDBDate($dbdate, $time); });