33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-10-31 18:52:31 +00:00

replace check against a preinstalled domains list by the link to the Joomla! Trademark Approval Registry page

This commit is contained in:
Denis Ryabov 2021-03-11 10:40:52 +03:00
parent d102979258
commit 65fe32b164
3 changed files with 3 additions and 58 deletions

View File

@ -49,7 +49,7 @@ COM_JEDCHECKER_INFO_XML_NAME_RESERVED_KEYWORDS="Keywords such as module, plugin
COM_JEDCHECKER_INFO_XML_NAME_VERSION="Version in name/title ('%s')"
COM_JEDCHECKER_INFO_XML_NAME_JOOMLA="An extension name ('%s') can't start with the word 'Joomla'"
COM_JEDCHECKER_INFO_XML_NAME_JOOMLA_DERIVATIVE="Extensions that use 'Joomla' or a derivative of Joomla in the extension name ('%s') need to be licensed by OSM"
COM_JEDCHECKER_INFO_XML_URL_JOOMLA_DERIVATIVE="Domain names that use 'Joomla' or a derivative of Joomla ('%s') need to be licensed by OSM"
COM_JEDCHECKER_INFO_XML_URL_JOOMLA_DERIVATIVE="Domain names that use 'Joomla' or a derivative of Joomla ('%1$s') need to be licensed by OSM. Please, check your domain name is listed on the <a href='%2$s'>Joomla! Trademark Approval Registry</a> page."
COM_JEDCHECKER_INFO_XML_NAME_ADMIN_MENU="The admin menu name '%1$s' isn't the same as the extension name '%2$s'"
COM_JEDCHECKER_INFO_XML_NAME_PLUGIN_FORMAT="The name of the plugin ('%s') must comply with the JED naming conventions in the form '{Type} - {Extension Name}'"
COM_JEDCHECKER_RULE_PH1="PHP Headers missing GPL License Notice"

View File

@ -266,17 +266,8 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
if (stripos($domain, 'joom') !== false)
{
// Remove "www." subdomain prefix
$domain = preg_replace('/^www\./', '', $domain);
// Approved domains from https://tm.joomla.org/approved-domains.html
$approvedDomains = file(__DIR__ . '/xmlinfo/approved-domains.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if (!in_array($domain, $approvedDomains, true))
{
// Extensions that use "Joomla" or a derivative of Joomla in the domain name need to be licensed by OSM
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_INFO_XML_URL_JOOMLA_DERIVATIVE', $url));
}
// Extensions that use "Joomla" or a derivative of Joomla in the domain name need to be licensed by OSM
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_INFO_XML_URL_JOOMLA_DERIVATIVE', $url, 'https://tm.joomla.org/approved-domains.html'));
}
}

View File

@ -1,46 +0,0 @@
joomla.org
hotjoomlatemplates.com
joomlanl.nl
joomla-templates.com
joomla-update.org
joomlaportal.ru
joomlavia.com
joomlatranslate.com
joomlamarketplace.online
hotjoomlatemplates.com
joomlatema.net
joomla.it
joomlaalger.org
joomla.cafe
joomlatwincities.org
joomlausersnj.com
joomlausersnyc.org
joomlact.org
joomlachicagonorth.com
joomlanh.org
joomlanh.org
joomlacarioca.com.br
novajoomla.com
joomlazur.com
joomladallas.org
joomlariodejaneiro.com.br
joomlatenerife.org
joomlage.com
joomlamadrid.org
joomschool.com
usingjoomla.com
joomla.cymru
joomlavigo.es
jug-warszawa.joomla.pl
joomlavalencia.net
jug-silesia.joomla.pl
jug-poznan.joomla.pl
joomla-canberra.org.au
joomlapay.com
joomlalondon.co.uk
mobilejoomla.com/
myjoomla.com
joomlacontenteditor.net
joomlalabs.com
modernjoomla.com