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

Warning on outdated manifest format

This commit is contained in:
Denis Ryabov 2021-04-04 16:06:01 +03:00
parent 0c9c53038c
commit 942f5a6dc0
2 changed files with 6 additions and 0 deletions

View File

@ -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_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_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_VERSION_XML="Version tag has the value: %s"
COM_JEDCHECKER_INFO_XML_CREATIONDATE_XML="The creationDate tag has the value: %s"

View File

@ -107,6 +107,11 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
// Check if this is an extension manifest
// 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')
{
return false;