From 4e339308a4fbce24803adee44c9fbb84018c9146 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson Date: Sun, 5 Jan 2025 14:40:13 +0000 Subject: [PATCH] Added notice when cms.disableCoreUpdates is enabled --- modules/system/classes/extensions/ModuleManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/system/classes/extensions/ModuleManager.php b/modules/system/classes/extensions/ModuleManager.php index e7c30dcec..c06635013 100644 --- a/modules/system/classes/extensions/ModuleManager.php +++ b/modules/system/classes/extensions/ModuleManager.php @@ -5,6 +5,7 @@ use Illuminate\Console\OutputStyle; use Illuminate\Console\View\Components\Error; use Illuminate\Console\View\Components\Info; +use Illuminate\Console\View\Components\Warn; use Illuminate\Database\Migrations\DatabaseMigrationRepository; use Illuminate\Database\Migrations\Migrator; use Illuminate\Support\Facades\App; @@ -95,7 +96,9 @@ public function update(WinterExtension|string|null $extension = null, bool $migr $this->output->info('Migration table created'); } - if (!$migrationsOnly && !Config::get('cms.disableCoreUpdates')) { + if (Config::get('cms.disableCoreUpdates', false)) { + $this->renderComponent(Warn::class, 'Not checking for core updates as `cms.disableCoreUpdates` is enabled'); + } elseif (!$migrationsOnly) { foreach ($modules as $module) { $extension = $this->get($module); if (