diff options
author | Olivier Paroz <github@oparoz.com> | 2015-04-12 17:01:20 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-04-12 17:01:20 +0300 |
commit | 07dca6261250faac88c5f73e10f237da670f4add (patch) | |
tree | 3be75c6b03e09ce9b3672ad926fbdf5ce1e1e499 /environment | |
parent | 898232fa8ba02febcc15b1700cd4fc18fde496d6 (diff) |
Use custom isLocal method to determine the location of files
Diffstat (limited to 'environment')
-rw-r--r-- | environment/environment.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/environment/environment.php b/environment/environment.php index d82cdb2a..f51cf240 100644 --- a/environment/environment.php +++ b/environment/environment.php @@ -255,14 +255,14 @@ class Environment { * * That root folder changes when folders are shared publicly * - * @param Node $file + * @param File|Folder $node * * @return string */ - public function getPathFromVirtualRoot($file) { - $path = $file->getPath(); + public function getPathFromVirtualRoot($node) { + $path = $node->getPath(); - if ($file->getType() === 'dir') { + if ($node->getType() === 'dir') { // Needed because fromRootToFolder always ends with a slash $path .= '/'; } @@ -318,7 +318,7 @@ class Environment { * * @param int $resourceId * - * @return Node + * @return File|Folder * * @throws EnvironmentException */ |