From 084414d337df9626debc84eba1677c42bb929dc3 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Thu, 7 Jul 2016 12:59:49 +0300
Subject: [PATCH] Move support e-mail from code to config #108

---
 deploy/phpConfig/general.json                                | 5 +++--
 .../classes/Controller/Handler/RequestsProcessing.php        | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/deploy/phpConfig/general.json b/deploy/phpConfig/general.json
index beb5f67ae..1afb83ec0 100644
--- a/deploy/phpConfig/general.json
+++ b/deploy/phpConfig/general.json
@@ -5,5 +5,6 @@
       "active": 0,
       "return": "info stub"
   },
-  "Logging": true
-}
\ No newline at end of file
+  "Logging": true,
+  "SupportServiceEmail": "it.lab.mmcs@gmail.com"
+}
diff --git a/~dev_rating/application/classes/Controller/Handler/RequestsProcessing.php b/~dev_rating/application/classes/Controller/Handler/RequestsProcessing.php
index a21038132..9090f93b5 100644
--- a/~dev_rating/application/classes/Controller/Handler/RequestsProcessing.php
+++ b/~dev_rating/application/classes/Controller/Handler/RequestsProcessing.php
@@ -29,7 +29,7 @@ class Controller_Handler_RequestsProcessing extends Controller_Handler {
         $requestID = (int) $_POST['requestID'];
 
         // constructing mail body
-        $to = 'it.lab.mmcs@gmail.com';
+        $to = Model_System::loadConfig('general.json')->SupportServiceEmail;
 
         $ticket = 0;
         if ($requestID <= 0) {
-- 
GitLab