Skip to content
Snippets Groups Projects
Commit 4c256433 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

removed '/' from file path because only Unix people understand the concept of...

removed '/' from file path because only Unix people understand the concept of that. Plus, 'Files' itself is the root.
parent 8c7fc032
No related branches found
No related tags found
No related merge requests found
......@@ -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 != "" ){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment