airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [1/5] airavata-php-gateway git commit: Fix for AIRAVATA-2473
Date Tue, 04 Jul 2017 16:34:01 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 2d8b6d7b2 -> 5d992bb5b


Fix for AIRAVATA-2473


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/89eee1d4
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/89eee1d4
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/89eee1d4

Branch: refs/heads/develop
Commit: 89eee1d4c466c89d844e85b81c3cf3bd4ebf20c3
Parents: 26a207a
Author: Sneha Tilak <tilaks@Snehas-MacBook-Pro.local>
Authored: Mon Jul 3 16:34:56 2017 -0500
Committer: Sneha Tilak <tilaks@Snehas-MacBook-Pro.local>
Committed: Mon Jul 3 16:34:56 2017 -0500

----------------------------------------------------------------------
 app/controllers/AdminController.php | 4 ++--
 app/libraries/EmailUtilities.php    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/89eee1d4/app/controllers/AdminController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AdminController.php b/app/controllers/AdminController.php
index 1227901..8877cca 100644
--- a/app/controllers/AdminController.php
+++ b/app/controllers/AdminController.php
@@ -176,7 +176,7 @@ class AdminController extends BaseController {
                 $username = Session::get("username");
                 $email = Config::get('pga_config.portal')['admin-emails'];
                 $user_profile = Keycloak::getUserProfile($username);
-                EmailUtilities::mailToUser($user_profile["firstname"], $user_profile["lastname"],
$email, Input::get("gateway_id"));
+                EmailUtilities::mailToUser($user_profile["firstname"], $user_profile["lastname"],
$user_profile["email"], Input::get("gateway_id"));
                 EmailUtilities::mailToAdmin($email, Input::get("gateway_id"));
                 return json_encode(AdminUtilities::get_gateway(Input::get("internal_gateway_id")));
             }
@@ -189,7 +189,7 @@ class AdminController extends BaseController {
                 $username = Session::get("username");
                 $email = Config::get('pga_config.portal')['admin-emails'];
                 $user_profile = Keycloak::getUserProfile($username);
-                EmailUtilities::mailToUser($user_profile["firstname"], $user_profile["lastname"],
$email, Input::get("gateway_id"));
+                EmailUtilities::mailToUser($user_profile["firstname"], $user_profile["lastname"],
$user_profile["email"], Input::get("gateway_id"));
                 EmailUtilities::mailToAdmin($email, Input::get("gateway_id"));
                 Session::put("message", "Request has been updated");
             }

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/89eee1d4/app/libraries/EmailUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/EmailUtilities.php b/app/libraries/EmailUtilities.php
index 42b7e1b..32813d5 100644
--- a/app/libraries/EmailUtilities.php
+++ b/app/libraries/EmailUtilities.php
@@ -117,7 +117,7 @@ class EmailUtilities
         $body = str_replace("\$lastName", $lastName, $body);
         $body = str_replace("\$gatewayId", $gatewayId, $body);
 
-        EmailUtilities::sendEmail($subject, $email, $body);
+        EmailUtilities::sendEmail($subject, [$email], $body);
 
     }
 


Mime
View raw message