From c2dbb749207fe50367e81126358f8393faa086d6 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Jun 2020 17:51:23 +0900 Subject: [PATCH] =?UTF-8?q?hook=20class=20filters=20=EB=A9=94=EC=86=8C?= =?UTF-8?q?=EB=93=9C=EC=97=90=EC=84=9C=20=EC=A4=91=EC=B2=A9=EC=9D=B4=20?= =?UTF-8?q?=EC=95=88=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Hook/hook.extends.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Hook/hook.extends.class.php b/lib/Hook/hook.extends.class.php index fd8b7cb82..47e9e4348 100644 --- a/lib/Hook/hook.extends.class.php +++ b/lib/Hook/hook.extends.class.php @@ -87,6 +87,9 @@ Class GML_Hook extends Hook { foreach ($filters as $priority) { foreach ($priority as $filter) { + if( isset($args[0]) ){ + $args[0] = $value; + } $replace = $that->runAction($filter, $args); if( ! is_null($replace) ) {