31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-05-31 20:50:48 +00:00

Merge PR #119 into develop

This commit is contained in:
Llewellyn van der Merwe 2021-08-31 12:07:04 +02:00
commit eb879febe8
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
5 changed files with 17 additions and 8 deletions

View File

@ -13,6 +13,9 @@ defined('_JEXEC') or die('Restricted access');
// Include the rule base class
require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/rule.php';
// Include the helper class
require_once JPATH_COMPONENT_ADMINISTRATOR . '/libraries/helper.php';
/**
* class JedcheckerRulesXMLManifest
@ -100,7 +103,7 @@ class JedcheckerRulesXMLManifest 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)
@ -128,12 +131,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
return false;
}
// Check if this is an extension manifest
if ($xml->getName() !== 'extension')
{
return false;
}
// Check extension type
$type = (string) $xml['type'];
@ -205,7 +202,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
/**
* @param SimpleXMLElement $node XML node object
* @param string $ruleset rulest name in the DTD array
* @param string $ruleset ruleset name in the DTD array
*
* @return void
*/

View File

@ -104,6 +104,9 @@
"charset",
"driver"
],
"schemapath": [
"type"
],
"server": [
"name",
"priority",

View File

@ -73,6 +73,9 @@
"charset",
"driver"
],
"schemapath": [
"type"
],
"server": [
"name",
"priority",

View File

@ -82,6 +82,9 @@
"charset",
"driver"
],
"schemapath": [
"type"
],
"server": [
"name",
"priority",

View File

@ -106,6 +106,9 @@
"charset",
"driver"
],
"schemapath": [
"type"
],
"server": [
"name",
"priority",