mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-05 15:32:10 +00:00
add support of api files in component (supported since J!4.0)
This commit is contained in:
parent
7d0e47cacc
commit
e582e2b358
@ -205,6 +205,17 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
|||||||
$this->checkFolders($node->folder, $dir);
|
$this->checkFolders($node->folder, $dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check: api files[folder] (filename|file|folder)*
|
||||||
|
if (isset($xml->api->files))
|
||||||
|
{
|
||||||
|
$node = $xml->api->files;
|
||||||
|
$dir = $this->getSourceFolder($node);
|
||||||
|
|
||||||
|
$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