airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [24/40] airavata-php-gateway git commit: fixing html issue
Date Fri, 25 Mar 2016 20:49:09 GMT
fixing html issue


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/c6ce39f9
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/c6ce39f9
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/c6ce39f9

Branch: refs/heads/master
Commit: c6ce39f919761f86ad398e043204c7df9fc84481
Parents: 77c4114
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Mar 23 18:00:30 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Mar 23 18:00:30 2016 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c6ce39f9/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 4a4c2b2..bcd6e99 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -89,8 +89,7 @@ class ExperimentUtilities
                 }
                 $dataRoot = Config::get("pga_config.airavata")["experiment-data-absolute-path"];
                 if(!ExperimentUtilities::endsWith($dataRoot, "/"))
-                    $dataRoot .= "/";
-                echo $hostPathConstant . $dataRoot . Session::get('username');
+                    $dataRoot = $dataRoot . "/";
                 $filePath = str_replace($hostPathConstant . $dataRoot . Session::get('username'),
"", $currentInputPath);
                 echo '<p><a target="_blank" href="' . URL::to("/") . '/download/?path='
. $filePath . '">' . basename($filePath) . ' <span class="glyphicon glyphicon-new-window"></span></a></p>';
             } elseif ($input->type == DataType::STRING || $input->type == DataType::INTEGER


Mime
View raw message