fix comparision of versions

This commit is contained in:
Uwe Steinmann 2025-11-15 13:45:29 +01:00
parent c0a6cb5d34
commit 6ca4c785c1

View File

@ -89,7 +89,7 @@ class DownloadextensionCommand extends Command
$output->writeln(sprintf("<info>Downloaded extension file '%s'</info>", $extversions[$extversion]['filename']));
if (!$noupload) {
if ($extconfs[$extname]) {
if (\Seeddms\Seeddms\ExtensionMgr::cmpVersion($extconfs[$extname]['version'], $extversion)) {
if (\Seeddms\Seeddms\ExtensionMgr::cmpVersion($extconfs[$extname]['version'], $extversion) > 0) {
$helper = new QuestionHelper();
$question = new ConfirmationQuestion(sprintf("<question>You are updating extension '%s' with an older version %s < %s. Do you want to proceed?</question> ", $extname, $extversion, $extconfs[$extname]['version']), false);
if (!$helper->ask($input, $output, $question)) {