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:
parent
825208b28c
commit
d353c8b2f8
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user