mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +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
|
||||
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
|
||||
*/
|
||||
|
@ -104,6 +104,9 @@
|
||||
"charset",
|
||||
"driver"
|
||||
],
|
||||
"schemapath": [
|
||||
"type"
|
||||
],
|
||||
"server": [
|
||||
"name",
|
||||
"priority",
|
||||
|
@ -73,6 +73,9 @@
|
||||
"charset",
|
||||
"driver"
|
||||
],
|
||||
"schemapath": [
|
||||
"type"
|
||||
],
|
||||
"server": [
|
||||
"name",
|
||||
"priority",
|
||||
|
@ -82,6 +82,9 @@
|
||||
"charset",
|
||||
"driver"
|
||||
],
|
||||
"schemapath": [
|
||||
"type"
|
||||
],
|
||||
"server": [
|
||||
"name",
|
||||
"priority",
|
||||
|
@ -106,6 +106,9 @@
|
||||
"charset",
|
||||
"driver"
|
||||
],
|
||||
"schemapath": [
|
||||
"type"
|
||||
],
|
||||
"server": [
|
||||
"name",
|
||||
"priority",
|
||||
|
Loading…
Reference in New Issue
Block a user