Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-04-12 17:01:20 +0300
committerOlivier Paroz <github@oparoz.com>2015-04-12 17:01:20 +0300
commit07dca6261250faac88c5f73e10f237da670f4add (patch)
tree3be75c6b03e09ce9b3672ad926fbdf5ce1e1e499 /environment
parent898232fa8ba02febcc15b1700cd4fc18fde496d6 (diff)
Use custom isLocal method to determine the location of files
Diffstat (limited to 'environment')
-rw-r--r--environment/environment.php10
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
*/