removed '/' from file path because only Unix people understand the concept of that. Plus, 'Files' itself is the root.
This commit is contained in:
parent
8c7fc03296
commit
4c256433c0
1 changed files with 2 additions and 2 deletions
|
@ -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 != "" ){
|
||||
|
|
Loading…
Reference in a new issue