From b3f11fc85f4cd9463a4a59eddae36e3bd1fb4e89 Mon Sep 17 00:00:00 2001 From: origami11 Date: Fri, 12 May 2017 14:13:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20action=20=D1=83=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/Component.php | 8 +++++++- src/Mail.php | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Controller/Component.php b/src/Controller/Component.php index 0a8220c..5d56d24 100644 --- a/src/Controller/Component.php +++ b/src/Controller/Component.php @@ -66,7 +66,13 @@ class Controller_Component function execute(HttpRequest $request, $has_id = true) { $crequest = new ComponentRequest($this->component_id, $request); - $action = 'action' . ucfirst($request->get('action', 'index')); + + $_action = $request->get('action', 'index'); + if (is_array($_action)) { + $action = 'action' . ucfirst(Arr::get($_action, $this->component_id, 'index')); + } else { + $action = 'action' . ucfirst($_action); + } $this->before(); if (method_exists($this, $action)) { diff --git a/src/Mail.php b/src/Mail.php index f27a0a8..1f4eda4 100644 --- a/src/Mail.php +++ b/src/Mail.php @@ -40,6 +40,10 @@ class Mail $this->_to = $name; } + function replyTo($name) // recipient + { + } + /** * Установка получателей копии */