mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-30 08:44:02 +00:00
language packs require "client" attribute too
This commit is contained in:
parent
bfb02b1350
commit
23fec304c6
@ -164,9 +164,10 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
||||
|
||||
switch ($type)
|
||||
{
|
||||
case 'language':
|
||||
case 'module':
|
||||
case 'template':
|
||||
// Check 'client' attribute is "site" or "administrator" (for module/template only)
|
||||
// Check 'client' attribute is "site" or "administrator" (for language/module/template only)
|
||||
$client = (string) $xml['client'];
|
||||
|
||||
if (!isset($xml['client']))
|
||||
@ -192,6 +193,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
||||
}
|
||||
break;
|
||||
|
||||
case 'language':
|
||||
case 'module':
|
||||
case 'template':
|
||||
$client = (string) $item['client'];
|
||||
@ -208,7 +210,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
||||
|
||||
case 'component':
|
||||
case 'file':
|
||||
case 'language':
|
||||
case 'library':
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user