From 4237e3e53ee17ec12da5f5b4942e5ca9d16ff7b2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 20 Aug 2013 21:04:11 +0200 Subject: [PATCH] modules/README triggers pointless warning --- library/Icinga/Application/Modules/Manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Application/Modules/Manager.php b/library/Icinga/Application/Modules/Manager.php index 6a4dd68a5..8aef0119d 100644 --- a/library/Icinga/Application/Modules/Manager.php +++ b/library/Icinga/Application/Modules/Manager.php @@ -149,12 +149,12 @@ class Manager $this->enabledDirs = array(); while (false !== ($file = readdir($fh))) { - if ($file[0] === '.') { + if ($file[0] === '.' || $file === 'README') { continue; } $link = $this->enableDir . '/' . $file; - if (!is_link($link)) { + if (! is_link($link)) { Logger::warn( 'Found invalid module in enabledModule directory "%s": "%s" is not a symlink', $this->enableDir,