airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: changing the file name to user provided value when value is set
Date Tue, 20 Oct 2015 16:32:25 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master b24539af4 -> 9b358c6ee


changing the file name to user provided value when value is set


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

Branch: refs/heads/master
Commit: 9b358c6eee8311432c60d6713ba0b686861446e9
Parents: b24539a
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Oct 20 12:32:20 2015 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Oct 20 12:32:20 2015 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/9b358c6e/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 0a160ce..a865af8 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -274,7 +274,11 @@ class ExperimentUtilities
                     //
                     // move file to experiment data directory
                     //
-                    $filePath = ExperimentUtilities::$experimentPath . $file['name'];
+                    if(!empty($applicationInput->value)){
+                        $filePath = ExperimentUtilities::$experimentPath . $applicationInput->value;
+                    }else{
+                        $filePath = ExperimentUtilities::$experimentPath . $file['name'];
+                    }
 
                     // check if file already exists
                     if (is_file($filePath)) {


Mime
View raw message