mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 18:40:39 +00:00
fix comparision of versions
This commit is contained in:
parent
c0a6cb5d34
commit
6ca4c785c1
|
|
@ -89,7 +89,7 @@ class DownloadextensionCommand extends Command
|
||||||
$output->writeln(sprintf("<info>Downloaded extension file '%s'</info>", $extversions[$extversion]['filename']));
|
$output->writeln(sprintf("<info>Downloaded extension file '%s'</info>", $extversions[$extversion]['filename']));
|
||||||
if (!$noupload) {
|
if (!$noupload) {
|
||||||
if ($extconfs[$extname]) {
|
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();
|
$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);
|
$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)) {
|
if (!$helper->ask($input, $output, $question)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user