Skip to content

Commit

Permalink
[Patch] Fixing project spaces navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
NadirRoGue committed Apr 21, 2016
1 parent 72ab674 commit 99d4fae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/private/files/objectstore/eosproxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function toEos($ocPath, $storageId) {//ocPath like files/abc.txt o
// if the user is a project owner,instead send him to his homedir we send him to the project dir.
$project = EosUtil::getProjectNameForUser($username);
if($project !== null) {
$project_path= $eos_project_prefix . $project . "/";// . substr($ocPath,5); #KUBA: added /
$project_path= $eos_project_prefix . substr($ocPath,6); #KUBA: added /
return $project_path;
}

Expand Down Expand Up @@ -106,9 +106,9 @@ public static function toOc($eosPath) {//eosPath like /eos/dev/user/ or /eos/dev
} else if (strpos($eosPath, $eos_project_prefix) === 0) {
$len_prefix = strlen($eos_project_prefix);
$rel = substr($eosPath, $len_prefix);
$splitted = explode("/", $rel);
$projectname = $splitted[0];
$ocPath = "files/" . $projectname;//substr($eosPath, strlen($eos_project_prefix . $projectname));
//$splitted = explode("/", $rel);
//$projectname = $splitted[0];
$ocPath = "files/" . $rel;//substr($eosPath, strlen($eos_project_prefix . $projectname));
$ocPath = rtrim($ocPath, "/");
return $ocPath;
} else {
Expand Down

0 comments on commit 99d4fae

Please sign in to comment.