Skip to content

Commit

Permalink
fix: installModule() does not actually install the module when run th…
Browse files Browse the repository at this point in the history
…e 1st time, but only downloads it #29
  • Loading branch information
BernhardBaumrock committed Nov 2, 2023
1 parent 7dd4984 commit ce59d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RockMigrations.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ public function installModule($name, $conf = [], $options = [])
if (!$module) {
// check if module files exist
$path = $this->wire->config->path($name);
$pathExists = $path and $this->wire->files->exists($path);
$pathExists = ($path and $this->wire->files->exists($path));
// download only if an url was provided and module files do not exist yet
if ($opt->url and !$pathExists) {
$pathExists = !!$this->downloadModule($opt->url);
Expand Down

0 comments on commit ce59d2d

Please sign in to comment.