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
@@ -109,7 +109,7 @@ class AboutController {
}
$text = ''; $last = array_key_last((array) $packages);
foreach ($packages as $key => $item) {
$text .= $item->name. ' v' .$item->version. ($key === $last ? '' : '<i class="bi-gear px-1"></i>');
$text .= $item->name. ' '.(str_starts_with($item->version,'v')?'':'v').$item->version. ($key === $last ? '' : '<i class="bi-gear px-1"></i>');
}
$this->app->json([ 'html' => $text ]);
}