33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +00:00

commenting the code

This commit is contained in:
Denis Ryabov 2021-03-11 01:15:13 +03:00
parent 825208b28c
commit d353c8b2f8

View File

@ -180,6 +180,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
if (!in_array($attr_name, $DTDattributes, true))
{
// The node has unknown attribute
$this->warnings[] = JText::sprintf('COM_JEDCHECKER_MANIFEST_UNKNOWN_ATTRIBUTE', $name, $attr_name);
}
}
@ -276,6 +277,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
{
if (isset($node['link']))
{
// The "link" attribute overrides any other link-related attributes (warn if they present)
$skip_attrs = array('act', 'controller', 'layout', 'sub', 'task', 'view');
foreach ($node->attributes() as $attr)
{