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: fixing dir briwse issue
Date Thu, 17 Mar 2016 16:26:19 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 3d30c8979 -> 6291b3950


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

Branch: refs/heads/develop
Commit: 6291b395051ddea10b0e43719255ce52a0f8c4f5
Parents: 3d30c89
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Thu Mar 17 12:26:16 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Thu Mar 17 12:26:16 2016 -0400

----------------------------------------------------------------------
 app/controllers/FilemanagerController.php | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/6291b395/app/controllers/FilemanagerController.php
----------------------------------------------------------------------
diff --git a/app/controllers/FilemanagerController.php b/app/controllers/FilemanagerController.php
index 710dc41..1ab8f85 100644
--- a/app/controllers/FilemanagerController.php
+++ b/app/controllers/FilemanagerController.php
@@ -33,13 +33,10 @@ class FilemanagerController extends BaseController
 			}
 			*/
 			$DATA_ROOT = Config::get("pga_config.airavata")["experiment-data-absolute-path"];
-			if( strpos($path, $DATA_ROOT) !== false)
-				$data_path = $DATA_ROOT . "/" . $path;
-			else
-				$data_path = $path;
-				
+			$data_path = $DATA_ROOT . "/" . $path;
 			if (!file_exists( $data_path))
-			    echo FileManager::msg(False, "$path does not exist");
+				echo FileManager::msg(False, "$path does not exist");
+
 			if (is_dir( $data_path))
 			    echo FileManager::get_content( $DATA_ROOT .  "/", $path);
 			else


Mime
View raw message