From 79949ad67ee347d220a48901369f53a3df869eae Mon Sep 17 00:00:00 2001 From: sergeytolkachyov Date: Thu, 5 Sep 2024 16:53:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=20?= =?UTF-8?q?=D1=82=D1=80=D0=B8=D0=B3=D0=B3=D0=B5=D1=80=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B2=20$input,=20=D1=87=D1=82=D0=BE=D0=B1=D1=8B=20=D1=81?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=B6=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B1=D1=8B=D0=BB=20=D0=B4=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=83=D0=BF=D0=B5=D0=BD=20=D0=B2=20=D0=BF=D0=BB=D0=B0=D0=B3?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- radicalform.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/radicalform.php b/radicalform.php index 6903114..0dabc04 100644 --- a/radicalform.php +++ b/radicalform.php @@ -1061,22 +1061,11 @@ public function onAjaxRadicalform() $mailer->setSender($sender); - // вызов внешнего плагина - PluginHelper::importPlugin('radicalform'); + $params = $this->params; $params->set('uploaddir', $this->params->get('uploadstorage') . '/rf-' . $uniq); $params->set('rfLatestNumber',$latestNumber); - try - { - $this->app->triggerEvent('onBeforeSendRadicalForm', array($this->clearInput($input), &$input,$params)); - } - catch(Throwable $e) - { - // TODO лог - } - - if (isset($input["rfSubject"]) && (!empty($input["rfSubject"]))) { $subject=$input["rfSubject"]; @@ -1149,6 +1138,16 @@ public function onAjaxRadicalform() } } + // вызов внешнего плагина + PluginHelper::importPlugin('radicalform'); + try + { + $this->app->triggerEvent('onBeforeSendRadicalForm', array($this->clearInput($input), &$input,$params)); + } + catch(Throwable $e) + { + // TODO лог + } unset($input["uniq"]); unset($input["needToSendFiles"]);