summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-11-07 16:53:56 +0100
committerBjörn Schießle <schiessle@owncloud.com>2012-11-07 16:54:42 +0100
commit311b04f6098674897e78ff0223cacbbfe381d044 (patch)
tree9f41a5c549cee844b4415559cdfc33b764e933b1 /lib
parentba62d8dea73b768afcf41b53d0dd6eb463907dee (diff)
downloadnextcloud-server-311b04f6098674897e78ff0223cacbbfe381d044.tar.gz
nextcloud-server-311b04f6098674897e78ff0223cacbbfe381d044.zip
backport from approved patch in stable45:
make root the default parameter for getAbsolutePath()
Diffstat (limited to 'lib')
-rw-r--r--lib/filesystemview.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 936e1feb412..ccaa040fe88 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -47,10 +47,7 @@ class OC_FilesystemView {
$this->fakeRoot=$root;
}
- public function getAbsolutePath($path) {
- if(!$path) {
- $path='/';
- }
+ public function getAbsolutePath($path = '/') {
if($path[0]!=='/') {
$path='/'.$path;
}