Skip to content
Snippets Groups Projects
Commit 573d36a1 authored by Robin Appelman's avatar Robin Appelman
Browse files

one / in filepaths is enough

parent 866d01f5
Branches
No related tags found
No related merge requests found
......@@ -42,6 +42,9 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
$files = array();
foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){
$i["date"] = OC_UTIL::formatDate($i["mtime"] );
if($i['directory']=='/'){
$i['directory']='';
}
$files[] = $i;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment