mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-05 15:32:10 +00:00
Merge PR #119 into develop
This commit is contained in:
commit
eb879febe8
@ -13,6 +13,9 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// Include the rule base class
|
// Include the rule base class
|
||||||
require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/rule.php';
|
require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/rule.php';
|
||||||
|
|
||||||
|
// Include the helper class
|
||||||
|
require_once JPATH_COMPONENT_ADMINISTRATOR . '/libraries/helper.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class JedcheckerRulesXMLManifest
|
* class JedcheckerRulesXMLManifest
|
||||||
@ -100,7 +103,7 @@ class JedcheckerRulesXMLManifest 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)
|
||||||
@ -128,12 +131,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if this is an extension manifest
|
|
||||||
if ($xml->getName() !== 'extension')
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check extension type
|
// Check extension type
|
||||||
$type = (string) $xml['type'];
|
$type = (string) $xml['type'];
|
||||||
|
|
||||||
@ -205,7 +202,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param SimpleXMLElement $node XML node object
|
* @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
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@ -104,6 +104,9 @@
|
|||||||
"charset",
|
"charset",
|
||||||
"driver"
|
"driver"
|
||||||
],
|
],
|
||||||
|
"schemapath": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
"server": [
|
"server": [
|
||||||
"name",
|
"name",
|
||||||
"priority",
|
"priority",
|
||||||
|
@ -73,6 +73,9 @@
|
|||||||
"charset",
|
"charset",
|
||||||
"driver"
|
"driver"
|
||||||
],
|
],
|
||||||
|
"schemapath": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
"server": [
|
"server": [
|
||||||
"name",
|
"name",
|
||||||
"priority",
|
"priority",
|
||||||
|
@ -82,6 +82,9 @@
|
|||||||
"charset",
|
"charset",
|
||||||
"driver"
|
"driver"
|
||||||
],
|
],
|
||||||
|
"schemapath": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
"server": [
|
"server": [
|
||||||
"name",
|
"name",
|
||||||
"priority",
|
"priority",
|
||||||
|
@ -106,6 +106,9 @@
|
|||||||
"charset",
|
"charset",
|
||||||
"driver"
|
"driver"
|
||||||
],
|
],
|
||||||
|
"schemapath": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
"server": [
|
"server": [
|
||||||
"name",
|
"name",
|
||||||
"priority",
|
"priority",
|
||||||
|
Loading…
Reference in New Issue
Block a user