Skip to content

Commit

Permalink
fix: show rockmigrations outdated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 11, 2024
1 parent 8c499d2 commit a269e26
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,12 @@ public function init()

// development helpers by rockmigrations
if ($this->wire->modules->isInstalled('RockMigrations')) {
$rm = rockmigrations();
$rm->minify(__DIR__ . "/Alfred.js");
try {
$rm = rockmigrations();
$rm->minify(__DIR__ . "/Alfred.js");
} catch (\Throwable $th) {
$this->warning("rockmigrations() not available - please update RockMigrations!");
}
}
}

Expand Down

0 comments on commit a269e26

Please sign in to comment.