diff --git a/app/Controller/System/AboutController.php b/app/Controller/System/AboutController.php
index 28bc99c..6ab7926 100644
--- a/app/Controller/System/AboutController.php
+++ b/app/Controller/System/AboutController.php
@@ -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 ? '' : '');
+ $text .= $item->name. ' '.(str_starts_with($item->version,'v')?'':'v').$item->version. ($key === $last ? '' : '');
}
$this->app->json([ 'html' => $text ]);
}
diff --git a/app/commands/CacheCommand.php b/app/commands/CacheCommand.php
index c5f9619..27d74cd 100644
--- a/app/commands/CacheCommand.php
+++ b/app/commands/CacheCommand.php
@@ -38,7 +38,7 @@ class CacheCommand extends AbstractBaseCommand {
$cache->set_dev($config->env() === 'development');
$cache->set_asset($asset);
$ares = $cache->Make_Cache();
- if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true);
+ if (is_array($ares)) $io->white(implode("\n", $ares['log']), true);
$io->ok("Done.", true);
}
diff --git a/app/config/routes.php b/app/config/routes.php
index a3e74e7..c983b23 100644
--- a/app/config/routes.php
+++ b/app/config/routes.php
@@ -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';