asdasd
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
require_once dirname(__DIR__, 2) . '/src/App/bootstrap.php';
|
||||
|
||||
use App\AppPaths;
|
||||
use ModulesCore\ModuleRegistry;
|
||||
|
||||
$projectRoot = dirname(__DIR__, 2);
|
||||
@@ -15,7 +16,7 @@ if ($module === '' || $path === '' || str_contains($path, '..')) {
|
||||
exit('Invalid module asset request.');
|
||||
}
|
||||
|
||||
$registry = new ModuleRegistry($projectRoot . '/modules');
|
||||
$registry = new ModuleRegistry(AppPaths::customAppsRoot($projectRoot));
|
||||
$modulePath = $registry->modulePath($module);
|
||||
|
||||
if ($modulePath === null) {
|
||||
|
||||
Reference in New Issue
Block a user