summaryrefslogtreecommitdiffstats
path: root/files/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-07 02:41:22 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-07 02:41:22 +0200
commitaf3aceaf0863f9a4c194925aa40ef97afd459f45 (patch)
treedf8be71765b8573a42127c90d1e9697f2b2e0ae0 /files/index.php
parentf22e39a5745fcdf745aa2af0917ca62ef7598904 (diff)
downloadnextcloud-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.php4
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']='';
}