33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-14 09:14:09 +00:00

Check files in the fileset node of type="file" extensions

This commit is contained in:
Denis Ryabov 2021-03-09 23:54:58 +03:00
parent 3e03b981e8
commit 715b061840

View File

@ -164,6 +164,17 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
$this->checkFiles($node->language, $dir); $this->checkFiles($node->language, $dir);
} }
// For type="file" extensions:
// Check files: fileset files[folder] (filename|file|folder)*
if (isset($xml->fileset->files))
{
$node = $xml->fileset->files;
$dir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : '');
$this->checkFiles($node->filename, $dir);
$this->checkFiles($node->file, $dir);
$this->checkFolders($node->folder, $dir);
}
// Check file: scriptfile // Check file: scriptfile
if (isset($xml->scriptfile)) if (isset($xml->scriptfile))
{ {