Skip to content

Commit

Permalink
Compile action file if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Feb 10, 2024
1 parent d8cea72 commit 1b4bb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProcessAdminActions.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ private function includeAndInstantiate($actionName) {
$actionPath = $this->getActionPath($actionName);
$ns = $this->wire('files')->getNamespace($actionPath);
if($ns === '\\') {
$actionPath = str_replace($this->wire('config')->paths->root, $this->wire('config')->paths->cache . 'FileCompiler/', $actionPath);
$actionPath = $this->wire('files')->compile($actionPath);
$nsClass = '\\' . $actionName;
}
else {
Expand Down

0 comments on commit 1b4bb36

Please sign in to comment.