Fix version display in AboutController and improve log output in CacheCommand; update routing for constant PROJECT_ROOT

This commit is contained in:
2026-11-03 13:35:51 +07:00
parent 03e281d671
commit 695028581f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ $router->group('', function(Router $router) use ($app, $session, $config) {
// handle Cache css & js for application
$router->get('/cache/@filename', function($filename) use ($app) {
$rootdir = (defined('PROJECT_ROOT')) ? PROJECT_ROOT : $app->get('app.project_root');
$rootdir = (defined('PROJECT_ROOT')) ? constant('PROJECT_ROOT') : $app->get('app.project_root');
$filePath = $rootdir . '/temp/cache/' . $filename;
if (file_exists($filePath) && !str_contains($filename, '..')) {
$mimeType = 'application/octet-stream';