Browse Source

improve create date of files

master
filesite 5 months ago
parent
commit
3222513609
  1. 6
      themes/beauty/views/site/index.php

6
themes/beauty/views/site/index.php

@ -227,9 +227,9 @@ eof;
} }
$title = !empty($file['title']) ? $file['title'] : $file['filename']; $title = !empty($file['title']) ? $file['title'] : $file['filename'];
//图片、视频显示文件创建日期 //图片、视频显示文件修改日期
if (!empty($file['fstat']['ctime'])) { if (!empty($file['fstat']['mtime']) && !empty($file['fstat']['ctime'])) {
$title = date('Y-m-d', $file['fstat']['ctime']); $title = date('Y-m-d', min($file['fstat']['mtime'], $file['fstat']['ctime']));
} }
if ($index > 0) { if ($index > 0) {

Loading…
Cancel
Save