mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-29 19:10:12 +02:00
Autoloader should not fail on missing module library directory
This commit is contained in:
parent
7dbede12fb
commit
db6dbdd381
@ -399,9 +399,13 @@ class Module
|
||||
*/
|
||||
protected function registerAutoloader()
|
||||
{
|
||||
if (is_dir($this->getBaseDir()) && is_dir($this->getLibDir())) {
|
||||
$moduleName = ucfirst($this->getName());
|
||||
$moduleLibraryDir = $this->getLibDir(). '/'. $moduleName;
|
||||
if (
|
||||
is_dir($this->getBaseDir()) &&
|
||||
is_dir($this->getLibDir()) &&
|
||||
is_dir($moduleLibraryDir)
|
||||
) {
|
||||
|
||||
$this->app->getLoader()->registerNamespace('Icinga\\Module\\' . $moduleName, $moduleLibraryDir);
|
||||
if (is_dir($this->getFormDir())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user