aboutsummaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <jan@unhosted.org>2011-10-22 00:29:45 +0200
committerJan-Christoph Borchardt <jan@unhosted.org>2011-10-22 00:30:01 +0200
commit4c256433c0f77382885b5b5f8d2874c27d8e2b66 (patch)
treebab5e5c8a00b9fb83410d136dbfbbb5f856d4830 /files
parent8c7fc032969cdb0a989b5f18e8b5ce915de2a0f4 (diff)
downloadnextcloud-server-4c256433c0f77382885b5b5f8d2874c27d8e2b66.tar.gz
nextcloud-server-4c256433c0f77382885b5b5f8d2874c27d8e2b66.zip
removed '/' from file path because only Unix people understand the concept of that. Plus, 'Files' itself is the root.
Diffstat (limited to 'files')
-rw-r--r--files/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/index.php b/files/index.php
index 7a9bf793a0e..bd37598289a 100644
--- a/files/index.php
+++ b/files/index.php
@@ -41,7 +41,7 @@ if(!isset($_SESSION['timezone'])){
}
OC_App::setActiveNavigationEntry( "files_index" );
// Load the files
-$dir = isset( $_GET['dir'] ) && $_GET['dir'] != '/' ? $_GET['dir'] : '';
+$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
$files = array();
foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
@@ -63,7 +63,7 @@ foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
}
// Make breadcrumb
-$breadcrumb = array('/');
+$breadcrumb = array();
$pathtohere = "";
foreach( explode( "/", $dir ) as $i ){
if( $i != "" ){