diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-01-06 13:56:03 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-01-06 13:56:03 +0100 |
commit | 5e7fa82eb634b47f5fb40694d9ee6eb9e4554019 (patch) | |
tree | 4cc8ddfa535e4a2f1c0955431bc1ce5b1345db16 | |
parent | 3178426797da3e426be572a7681c3595d2166390 (diff) | |
download | rpg-5e7fa82eb634b47f5fb40694d9ee6eb9e4554019.tar.gz rpg-5e7fa82eb634b47f5fb40694d9ee6eb9e4554019.tar.bz2 |
show lastmod datetime in mediamanager FS#964
darcs-hash:20070106125603-7ad00-a10d366e8a3c7d58aacbffbe333b4fccba340f4a.gz
-rw-r--r-- | inc/media.php | 3 | ||||
-rw-r--r-- | inc/search.php | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/inc/media.php b/inc/media.php index dcb8aa76d..593d1211c 100644 --- a/inc/media.php +++ b/inc/media.php @@ -315,6 +315,7 @@ function media_fileactions($item,$auth){ */ function media_printfile($item,$auth,$jump){ global $lang; + global $conf; // Prepare zebra coloring // I always wanted to use this variable name :-D @@ -345,6 +346,8 @@ function media_printfile($item,$auth,$jump){ $info .= (int) $item['meta']->getField('File.Height'); $info .= ' '; } + $info .= '<i>'.date($conf['dformat'],$item['mtime']).'</i>'; + $info .= ' '; $info .= filesize_h($item['size']); // ouput diff --git a/inc/search.php b/inc/search.php index d8fe75122..d6a2166c5 100644 --- a/inc/search.php +++ b/inc/search.php @@ -207,6 +207,7 @@ function search_media(&$data,$base,$file,$type,$lvl,$opts){ $info['file'] = basename($file); $info['size'] = filesize($base.'/'.$file); + $info['mtime'] = filemtime($base.'/'.$file); $info['writable'] = is_writable($base.'/'.$file); if(preg_match("/\.(jpe?g|gif|png)$/",$file)){ $info['isimg'] = true; |