Skip to content

Commit

Permalink
Minor namespace check tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Feb 10, 2024
1 parent b63980d commit d8cea72
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 @@ -521,7 +521,7 @@ private function getActionPath($actionName) {
private function includeAndInstantiate($actionName) {
$actionPath = $this->getActionPath($actionName);
$ns = $this->wire('files')->getNamespace($actionPath);
if($ns !== 'ProcessWire') {
if($ns === '\\') {
$actionPath = str_replace($this->wire('config')->paths->root, $this->wire('config')->paths->cache . 'FileCompiler/', $actionPath);
$nsClass = '\\' . $actionName;
}
Expand Down

0 comments on commit d8cea72

Please sign in to comment.