Browse Source

bug fix: change atime to mtime for doc update

master
filesite 2 weeks ago
parent
commit
630ab5270d
  1. 2
      themes/manual/controller/SiteController.php
  2. 2
      themes/manual/controller/ViewController.php

2
themes/manual/controller/SiteController.php

@ -30,7 +30,7 @@ Class SiteController extends Controller {
$html = $scanner->fixMDUrls($readmeFile['realpath'], $html); $html = $scanner->fixMDUrls($readmeFile['realpath'], $html);
$publishTime = Common::getFileCreateTime($readmeFile); $publishTime = Common::getFileCreateTime($readmeFile);
$updateTime = $readmeFile['fstat']['atime']; $updateTime = $readmeFile['fstat']['mtime'];
if (!empty($readmeFile['author'])) { if (!empty($readmeFile['author'])) {
$author = $readmeFile['author']; $author = $readmeFile['author'];
} }

2
themes/manual/controller/ViewController.php

@ -36,7 +36,7 @@ Class ViewController extends Controller {
$html = $scanner->fixMDUrls($readmeFile['realpath'], $html); $html = $scanner->fixMDUrls($readmeFile['realpath'], $html);
$publishTime = Common::getFileCreateTime($readmeFile); $publishTime = Common::getFileCreateTime($readmeFile);
$updateTime = $readmeFile['fstat']['atime']; $updateTime = $readmeFile['fstat']['mtime'];
if (!empty($readmeFile['author'])) { if (!empty($readmeFile['author'])) {
$author = $readmeFile['author']; $author = $readmeFile['author'];
} }

Loading…
Cancel
Save