mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +00:00
switch to JEDCheckerHelper::findManifests
This commit is contained in:
parent
1b3b020322
commit
234abe600e
@ -69,7 +69,7 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
||||
public function check()
|
||||
{
|
||||
// Find all XML files of the extension
|
||||
$files = JFolder::files($this->basedir, '\.xml$', true, true);
|
||||
$files = JEDCheckerHelper::findManifests($this->basedir);
|
||||
|
||||
// Iterate through all the xml files
|
||||
foreach ($files as $file)
|
||||
@ -97,12 +97,6 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if this is an extension manifest
|
||||
if ($xml->getName() !== 'extension')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->errors = array();
|
||||
|
||||
// Check declared files and folders do exist
|
||||
@ -245,7 +239,6 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
||||
|
||||
case 'plugin':
|
||||
$group = (string) $xml['group'];
|
||||
|
||||
$extensionPath = 'plugins/' . $group . '/' . $element . '/';
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user