Fix version display in AboutController and improve log output in CacheCommand; update routing for constant PROJECT_ROOT
This commit is contained in:
@@ -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 ]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user