mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-12 00:06:27 +00:00
Check files in the fileset node of type="file" extensions
This commit is contained in:
parent
3e03b981e8
commit
715b061840
@ -164,6 +164,17 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
||||
$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
|
||||
if (isset($xml->scriptfile))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user