modules/README triggers pointless warning

This commit is contained in:
Thomas Gelf 2013-08-20 21:04:11 +02:00 committed by Eric Lippmann
parent 8b20d883c4
commit 4237e3e53e
1 changed files with 2 additions and 2 deletions

View File

@ -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,