33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +00:00

check packages

This commit is contained in:
Denis Ryabov 2021-02-14 00:02:08 +03:00
parent 0bf71c0950
commit a1197006e5

View File

@ -104,11 +104,13 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
$basedir = dirname($file) . '/';
// check: files[folder] (filename|folder)*
// for package: files[folder] (file|folder)*
if (isset($xml->files))
{
$node = $xml->files;
$dir = $basedir . (isset($node['folder']) ? $node['folder'] . '/' : '');
$this->checkFiles($node->filename, $dir);
$this->checkFiles($node->file, $dir); // for packages
$this->checkFolders($node->folder, $dir);
}