diff --git a/themes/manual/controller/SiteController.php b/themes/manual/controller/SiteController.php index 1492e1a..da0f57f 100644 --- a/themes/manual/controller/SiteController.php +++ b/themes/manual/controller/SiteController.php @@ -4,6 +4,7 @@ */ require_once __DIR__ . '/../../../lib/DirScanner.php'; require_once __DIR__ . '/../../../plugins/Parsedown.php'; +require_once __DIR__ . '/../../../plugins/Common.php'; Class SiteController extends Controller { @@ -28,8 +29,8 @@ Class SiteController extends Controller { $html = $Parsedown->text($content); $html = $scanner->fixMDUrls($readmeFile['realpath'], $html); - $publishTime = min($readmeFile['fstat']['ctime'], $readmeFile['fstat']['atime']); - $updateTime = $readmeFile['fstat']['mtime']; + $publishTime = Common::getFileCreateTime($readmeFile); + $updateTime = $readmeFile['fstat']['atime']; if (!empty($readmeFile['author'])) { $author = $readmeFile['author']; } diff --git a/themes/manual/controller/ViewController.php b/themes/manual/controller/ViewController.php index 93bf382..d8603e6 100644 --- a/themes/manual/controller/ViewController.php +++ b/themes/manual/controller/ViewController.php @@ -4,6 +4,7 @@ */ require_once __DIR__ . '/../../../lib/DirScanner.php'; require_once __DIR__ . '/../../../plugins/Parsedown.php'; +require_once __DIR__ . '/../../../plugins/Common.php'; Class ViewController extends Controller { @@ -34,8 +35,8 @@ Class ViewController extends Controller { $html = $Parsedown->text($content); $html = $scanner->fixMDUrls($readmeFile['realpath'], $html); - $publishTime = min($readmeFile['fstat']['ctime'], $readmeFile['fstat']['atime']); - $updateTime = $readmeFile['fstat']['mtime']; + $publishTime = Common::getFileCreateTime($readmeFile); + $updateTime = $readmeFile['fstat']['atime']; if (!empty($readmeFile['author'])) { $author = $readmeFile['author']; } diff --git a/themes/manual/views/site/index.php b/themes/manual/views/site/index.php index 9e77dd2..35e066d 100644 --- a/themes/manual/views/site/index.php +++ b/themes/manual/views/site/index.php @@ -18,8 +18,7 @@ eof; eof; } ?> - 发布: -
修改: + 修改: diff --git a/themes/manual/views/view/index.php b/themes/manual/views/view/index.php index b9132d0..beb0fa7 100644 --- a/themes/manual/views/view/index.php +++ b/themes/manual/views/view/index.php @@ -19,8 +19,7 @@ eof; eof; } ?> - 发布: -
修改: + 修改: