one / in filepaths is enough

remotes/origin/stable
Robin Appelman 14 years ago
parent 866d01f50d
commit 573d36a168
  1. 3
      files/index.php

@ -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;
}

Loading…
Cancel
Save