Skip to content

Commit

Permalink
fix: don't use filesondemand on cli
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Jan 19, 2024
1 parent 71fb270 commit 67f3388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RockMigrations.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,8 @@ public function lastSecond($year = null, $month = null, $day = null): int
protected function loadFilesOnDemand()
{
if (!$this->wire->config->filesOnDemand) return;
if ($this->isCLI()) return;

$hook = function (HookEvent $event) {
$config = $this->wire->config;
$file = $event->return;
Expand Down

0 comments on commit 67f3388

Please sign in to comment.