|
|
@ -4,6 +4,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
require_once __DIR__ . '/../../../lib/DirScanner.php'; |
|
|
|
require_once __DIR__ . '/../../../lib/DirScanner.php'; |
|
|
|
require_once __DIR__ . '/../../../plugins/Parsedown.php'; |
|
|
|
require_once __DIR__ . '/../../../plugins/Parsedown.php'; |
|
|
|
|
|
|
|
require_once __DIR__ . '/../../../plugins/Common.php'; |
|
|
|
|
|
|
|
|
|
|
|
Class SiteController extends Controller { |
|
|
|
Class SiteController extends Controller { |
|
|
|
|
|
|
|
|
|
|
@ -28,8 +29,8 @@ Class SiteController extends Controller { |
|
|
|
$html = $Parsedown->text($content); |
|
|
|
$html = $Parsedown->text($content); |
|
|
|
$html = $scanner->fixMDUrls($readmeFile['realpath'], $html); |
|
|
|
$html = $scanner->fixMDUrls($readmeFile['realpath'], $html); |
|
|
|
|
|
|
|
|
|
|
|
$publishTime = min($readmeFile['fstat']['ctime'], $readmeFile['fstat']['atime']); |
|
|
|
$publishTime = Common::getFileCreateTime($readmeFile); |
|
|
|
$updateTime = $readmeFile['fstat']['mtime']; |
|
|
|
$updateTime = $readmeFile['fstat']['atime']; |
|
|
|
if (!empty($readmeFile['author'])) { |
|
|
|
if (!empty($readmeFile['author'])) { |
|
|
|
$author = $readmeFile['author']; |
|
|
|
$author = $readmeFile['author']; |
|
|
|
} |
|
|
|
} |
|
|
|