mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-16 10:24:27 +02:00
Merge pull request #3376 from Icinga/bugfix/classloader-namespace-interference
Fix interference between two similar namespaces
This commit is contained in:
commit
faca1c0908
@ -112,7 +112,7 @@ class ClassLoader
|
||||
}
|
||||
|
||||
foreach ($this->namespaces as $namespace => $dir) {
|
||||
if ($class === strstr($class, $namespace)) {
|
||||
if ($class === strstr($class, "$namespace\\")) {
|
||||
return $this->buildClassFilename($class, $namespace);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user