mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-02 18:08:21 +00:00
remove extension type check (moving to XMLINFO rules)
This commit is contained in:
parent
7d0e47cacc
commit
4b89e2fca6
@ -92,15 +92,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
|||||||
'module', 'package', 'plugin', 'template'
|
'module', 'package', 'plugin', 'template'
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
|
||||||
* List of JED extension types
|
|
||||||
*
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
protected $jedTypes = array(
|
|
||||||
'component', 'module', 'package', 'plugin'
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initiates the search and check
|
* Initiates the search and check
|
||||||
*
|
*
|
||||||
@ -153,12 +144,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// JED allows components, modules, plugins, and packages (as a container) only
|
|
||||||
if (!in_array($type, $this->jedTypes, true))
|
|
||||||
{
|
|
||||||
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_MANIFEST_TYPE_NOT_ACCEPTED', $type));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load DTD-like data for this extension type
|
// Load DTD-like data for this extension type
|
||||||
$jsonFilename = __DIR__ . '/xmlmanifest/dtd_' . $type . '.json';
|
$jsonFilename = __DIR__ . '/xmlmanifest/dtd_' . $type . '.json';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user