Skip to content

Commit

Permalink
Added notice when cms.disableCoreUpdates is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jan 5, 2025
1 parent d8d9850 commit 4e33930
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/system/classes/extensions/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 4e33930

Please sign in to comment.