Skip to content

Commit

Permalink
Allow ModuleManager to require Module config file more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno2005 committed Jul 26, 2024
1 parent bd41540 commit 06918e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libraries/Module/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function writeContents()
public function addModuleConfig()
{
$modulesConfigPath = base_dir() . DS . 'shared' . DS . 'config' . DS . 'modules.php';
$modules = require_once $modulesConfigPath;
$modules = require $modulesConfigPath;

foreach ($modules['modules'] as $module => $options) {
if ($module == $this->moduleName || $options['prefix'] == strtolower($this->moduleName)) {
Expand Down

0 comments on commit 06918e1

Please sign in to comment.