diff --git a/app/Http/Controllers/Install/Updates.php b/app/Http/Controllers/Install/Updates.php index a225c2ac5..eae04d01c 100644 --- a/app/Http/Controllers/Install/Updates.php +++ b/app/Http/Controllers/Install/Updates.php @@ -98,6 +98,12 @@ class Updates extends Controller $name = $module->getName(); $installed = $module->get('version'); + + if ($installed >= $version) { + flash(trans('modules.warning.latest_version', ['module' => $name]))->warning()->important(); + + return $this->check(); + } } return view('install.updates.edit', compact('alias', 'name', 'installed', 'version')); diff --git a/resources/lang/en-GB/modules.php b/resources/lang/en-GB/modules.php index 48f9b7501..7883646b8 100644 --- a/resources/lang/en-GB/modules.php +++ b/resources/lang/en-GB/modules.php @@ -102,6 +102,10 @@ return [ 'finish' => 'Not able to finalize :module installation', ], + 'warning' => [ + 'latest_version' => 'You are using the latest version of :module, no updates available.', + ], + 'badge' => [ 'installed' => 'Installed', 'pre_sale' => 'Pre-Sale',