mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-02 18:08:21 +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)
|
switch ($type)
|
||||||
{
|
{
|
||||||
|
case 'language':
|
||||||
case 'module':
|
case 'module':
|
||||||
case 'template':
|
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'];
|
$client = (string) $xml['client'];
|
||||||
|
|
||||||
if (!isset($xml['client']))
|
if (!isset($xml['client']))
|
||||||
@ -192,6 +193,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'language':
|
||||||
case 'module':
|
case 'module':
|
||||||
case 'template':
|
case 'template':
|
||||||
$client = (string) $item['client'];
|
$client = (string) $item['client'];
|
||||||
@ -208,7 +210,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
|
|||||||
|
|
||||||
case 'component':
|
case 'component':
|
||||||
case 'file':
|
case 'file':
|
||||||
case 'language':
|
|
||||||
case 'library':
|
case 'library':
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user