mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-18 02:55:10 +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()
|
public function check()
|
||||||
{
|
{
|
||||||
// Find all XML files of the extension
|
// 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
|
// Iterate through all the xml files
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
@ -97,12 +97,6 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if this is an extension manifest
|
|
||||||
if ($xml->getName() !== 'extension')
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->errors = array();
|
$this->errors = array();
|
||||||
|
|
||||||
// Check declared files and folders do exist
|
// Check declared files and folders do exist
|
||||||
@ -245,7 +239,6 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
|
|||||||
|
|
||||||
case 'plugin':
|
case 'plugin':
|
||||||
$group = (string) $xml['group'];
|
$group = (string) $xml['group'];
|
||||||
|
|
||||||
$extensionPath = 'plugins/' . $group . '/' . $element . '/';
|
$extensionPath = 'plugins/' . $group . '/' . $element . '/';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user