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
|
@ -41,7 +41,7 @@ if(!isset($_SESSION['timezone'])){
|
||||||
}
|
}
|
||||||
OC_App::setActiveNavigationEntry( "files_index" );
|
OC_App::setActiveNavigationEntry( "files_index" );
|
||||||
// Load the files
|
// Load the files
|
||||||
$dir = isset( $_GET['dir'] ) && $_GET['dir'] != '/' ? $_GET['dir'] : '';
|
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
|
foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
|
||||||
|
@ -63,7 +63,7 @@ foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make breadcrumb
|
// Make breadcrumb
|
||||||
$breadcrumb = array('/');
|
$breadcrumb = array();
|
||||||
$pathtohere = "";
|
$pathtohere = "";
|
||||||
foreach( explode( "/", $dir ) as $i ){
|
foreach( explode( "/", $dir ) as $i ){
|
||||||
if( $i != "" ){
|
if( $i != "" ){
|
||||||
|
|
Loading…
Reference in New Issue