mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-01 06:01:46 +00:00
Warning on outdated manifest format
This commit is contained in:
parent
0c9c53038c
commit
942f5a6dc0
@ -40,6 +40,7 @@ COM_JEDCHECKER_LEAVE_A_REVIEW_JED="If you use this component, please post a rati
|
|||||||
COM_JEDCHECKER_INFO="Info"
|
COM_JEDCHECKER_INFO="Info"
|
||||||
COM_JEDCHECKER_INFO_XML="Information about extension xml files"
|
COM_JEDCHECKER_INFO_XML="Information about extension xml files"
|
||||||
COM_JEDCHECKER_INFO_XML_DESC="The install name of your extension must match your listing name on JED. We scan the xml files and find the value of the name tag. Useful information for the "filename and install as" fields in the jed submission form"
|
COM_JEDCHECKER_INFO_XML_DESC="The install name of your extension must match your listing name on JED. We scan the xml files and find the value of the name tag. Useful information for the "filename and install as" fields in the jed submission form"
|
||||||
|
COM_JEDCHECKER_INFO_XML_MANIFEST_OUTDATED="Manifest file uses outdated format. Use <extension> instead of <install> root tag name."
|
||||||
COM_JEDCHECKER_INFO_XML_NAME_XML="The name tag in this file is: <b>%s</b>"
|
COM_JEDCHECKER_INFO_XML_NAME_XML="The name tag in this file is: <b>%s</b>"
|
||||||
COM_JEDCHECKER_INFO_XML_VERSION_XML="Version tag has the value: %s"
|
COM_JEDCHECKER_INFO_XML_VERSION_XML="Version tag has the value: %s"
|
||||||
COM_JEDCHECKER_INFO_XML_CREATIONDATE_XML="The creationDate tag has the value: %s"
|
COM_JEDCHECKER_INFO_XML_CREATIONDATE_XML="The creationDate tag has the value: %s"
|
||||||
|
@ -107,6 +107,11 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
|||||||
|
|
||||||
// Check if this is an extension manifest
|
// Check if this is an extension manifest
|
||||||
// 1.5 uses 'install', 1.6+ uses 'extension'
|
// 1.5 uses 'install', 1.6+ uses 'extension'
|
||||||
|
if ($xml->getName() === 'install')
|
||||||
|
{
|
||||||
|
$this->report->addWarning($file, JText::sprintf('COM_JEDCHECKER_INFO_XML_MANIFEST_OUTDATED'));
|
||||||
|
}
|
||||||
|
|
||||||
if ($xml->getName() !== 'extension')
|
if ($xml->getName() !== 'extension')
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user