You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/03/25 21:49:11 UTC
[26/40] airavata-php-gateway git commit: adding user name to logical
path too
adding user name to logical path too
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/e3b15b56
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/e3b15b56
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/e3b15b56
Branch: refs/heads/master
Commit: e3b15b566d938c0b1446744fd2c6f7084db5fbe8
Parents: f6da039
Author: scnakandala <su...@gmail.com>
Authored: Wed Mar 23 18:20:55 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Wed Mar 23 18:20:55 2016 -0400
----------------------------------------------------------------------
app/libraries/ExperimentUtilities.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/e3b15b56/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 6f3e082..92452e3 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -314,7 +314,7 @@ class ExperimentUtilities
$dataProductModel->gatewayId = Config::get("pga_config.airavata")["gateway-id"];
$dataProductModel->ownerName = Session::get("username");
$dataProductModel->productName = basename($filePath);
- $logicalPath = str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"] . "/" . Session::get('username'), "", $filePath);
+ $logicalPath = str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"], "", $filePath);
$dataProductModel->logicalPath = $logicalPath;
$dataProductModel->dataProductType = DataProductType::FILE;
@@ -456,7 +456,7 @@ class ExperimentUtilities
$dataProductModel->gatewayId = Config::get("pga_config.airavata")["gateway-id"];
$dataProductModel->ownerName = Session::get("username");
$dataProductModel->productName = basename($newInputPath);
- $logicalPath = str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"] . "/" . Session::get('username'), "", $newInputPath);
+ $logicalPath = str_replace(Config::get("pga_config.airavata")["experiment-data-absolute-path"] , "", $newInputPath);
$dataProductModel->logicalPath = $logicalPath;
$dataProductModel->dataProductType = DataProductType::FILE;