diff --git a/src/modules/Theme/Service.php b/src/modules/Theme/Service.php index 00a31dac3..433026037 100644 --- a/src/modules/Theme/Service.php +++ b/src/modules/Theme/Service.php @@ -364,8 +364,7 @@ class Service implements InjectionAwareInterface } $list = array_unique($list); foreach ($list as $mod) { - $p = Path::join(PATH_MODS, ucfirst($mod)); - $p .= $client ? 'html_client' : 'html_admin'; + $p = Path::join(PATH_MODS, ucfirst($mod), $client ? 'html_client' : 'html_admin'); if ($this->filesystem->exists($p)) { $paths[] = $p; }