mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-02 18:08:21 +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);
|
$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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user