31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-21 22:12:20 +00:00

change message type: compat for _QQ_, and info for empty values

This commit is contained in:
Denis Ryabov 2021-02-23 23:47:14 +03:00
parent a7aa53ac31
commit dcf4801eec

View File

@ -180,7 +180,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule
// Check for empty value
if ($value === '""')
{
$this->report->addWarning($file, JText::_('COM_JEDCHECKER_LANG_TRANSLATION_EMPTY'), $startLineno, $line);
$this->report->addInfo($file, JText::_('COM_JEDCHECKER_LANG_TRANSLATION_EMPTY'), $startLineno, $line);
continue;
}
@ -196,7 +196,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule
// Check for legacy "_QQ_" code (deprecated since Joomla! 3.9 if favor of escaped double quote \"; removed in Joomla! 4)
if (strpos($value, '"_QQ_"') !== false)
{
$this->report->addInfo($file, JText::_('COM_JEDCHECKER_LANG_QQ_DEPRECATED'), $startLineno, $line);
$this->report->addCompat($file, JText::_('COM_JEDCHECKER_LANG_QQ_DEPRECATED'), $startLineno, $line);
}
// Count %... formats in the string