diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-07 02:41:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-07 02:41:22 +0200 |
commit | af3aceaf0863f9a4c194925aa40ef97afd459f45 (patch) | |
tree | df8be71765b8573a42127c90d1e9697f2b2e0ae0 /files/index.php | |
parent | f22e39a5745fcdf745aa2af0917ca62ef7598904 (diff) | |
download | nextcloud-server-af3aceaf0863f9a4c194925aa40ef97afd459f45.tar.gz nextcloud-server-af3aceaf0863f9a4c194925aa40ef97afd459f45.zip |
show file extention in a lighter color
Diffstat (limited to 'files/index.php')
-rw-r--r-- | files/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/files/index.php b/files/index.php index a163895131e..e06ab552632 100644 --- a/files/index.php +++ b/files/index.php @@ -47,6 +47,10 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; $files = array(); foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){ $i["date"] = OC_UTIL::formatDate($i["mtime"] ); + if($i['type']=='file'){ + $i['extention']=substr($i['name'],strrpos($i['name'],'.')); + $i['name']=substr($i['name'],0,strrpos($i['name'],'.')); + } if($i['directory']=='/'){ $i['directory']=''; } |