mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
modules/README triggers pointless warning
This commit is contained in:
parent
8b20d883c4
commit
4237e3e53e
@ -149,12 +149,12 @@ class Manager
|
|||||||
$this->enabledDirs = array();
|
$this->enabledDirs = array();
|
||||||
while (false !== ($file = readdir($fh))) {
|
while (false !== ($file = readdir($fh))) {
|
||||||
|
|
||||||
if ($file[0] === '.') {
|
if ($file[0] === '.' || $file === 'README') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = $this->enableDir . '/' . $file;
|
$link = $this->enableDir . '/' . $file;
|
||||||
if (!is_link($link)) {
|
if (! is_link($link)) {
|
||||||
Logger::warn(
|
Logger::warn(
|
||||||
'Found invalid module in enabledModule directory "%s": "%s" is not a symlink',
|
'Found invalid module in enabledModule directory "%s": "%s" is not a symlink',
|
||||||
$this->enableDir,
|
$this->enableDir,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user