Skip to content

Commit

Permalink
fix: fix debugInfo throwing error if folders are null
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Jan 6, 2024
1 parent 18af88a commit c69a79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class RockFrontend extends WireData implements Module, ConfigurableModule

public function __construct()
{
$this->folders = $this->wire(new WireArray());
if (!$this->wire->config->livereload) return;
if ($this->wire->config->ajax) return;
if (!array_key_exists(self::getParam, $_GET)) return;
Expand Down Expand Up @@ -185,7 +186,6 @@ public function init()
if ($rm = $this->rm()) $rm->watch($this, 0.01);

// setup folders that are scanned for files
$this->folders = $this->wire(new WireArray());
$this->folders->add($this->config->paths->templates);
$this->folders->add($this->config->paths->assets);
$this->folders->add($this->config->paths->root);
Expand Down

0 comments on commit c69a79e

Please sign in to comment.