diff --git a/language/en-GB/pkg_wtcontactwithfields.sys.ini b/language/en-GB/pkg_wtcontactwithfields.sys.ini index 2186d8b..b405f2a 100644 --- a/language/en-GB/pkg_wtcontactwithfields.sys.ini +++ b/language/en-GB/pkg_wtcontactwithfields.sys.ini @@ -4,6 +4,6 @@ PKG_WTCONTACTWITHFIELDS_AFTER_INSTALL = "Thank you for intalling extension" PKG_WTCONTACTWITHFIELDS_AFTER_DISCOVER_INSTALL = "Thank you for intalling extension" PKG_WTCONTACTWITHFIELDS_AFTER_UPDATE = "Thank you for updating extension" PKG_WTCONTACTWITHFIELDS_MAYBE_INTERESTING="
First extension version.
" +PKG_WTCONTACTWITHFIELDS_WHATS_NEW="The plugin crashed with an error if the contact with the specified id did not exist or was removed from publication. Fixed it.
" PKG_WTCONTACTWITHFIELDS_AFTER_UNINSTALL="Very sorry..." PKG_WTCONTACTWITHFIELDS_JOOMLARU_TELEGRAM_CHAT="Telegram Joomla community" \ No newline at end of file diff --git a/language/ru-RU/pkg_wtcontactwithfields.sys.ini b/language/ru-RU/pkg_wtcontactwithfields.sys.ini index 3f56153..cf82f69 100644 --- a/language/ru-RU/pkg_wtcontactwithfields.sys.ini +++ b/language/ru-RU/pkg_wtcontactwithfields.sys.ini @@ -4,6 +4,6 @@ PKG_WTCONTACTWITHFIELDS_AFTER_INSTALL = "Спасибо за установку PKG_WTCONTACTWITHFIELDS_AFTER_DISCOVER_INSTALL = "Спасибо за установку расширения" PKG_WTCONTACTWITHFIELDS_AFTER_UPDATE = "Спасибо за обновление расширения" PKG_WTCONTACTWITHFIELDS_MAYBE_INTERESTING="Первая версия расширения.
" +PKG_WTCONTACTWITHFIELDS_WHATS_NEW="Плагин падал с ошибкой в случае если контакт с указанным id не существовал или был снят с публикации. Исправлено.
" PKG_WTCONTACTWITHFIELDS_AFTER_UNINSTALL="Очень жаль..." PKG_WTCONTACTWITHFIELDS_JOOMLARU_TELEGRAM_CHAT="Joomla сообщество в Телеграм" \ No newline at end of file diff --git a/pkg_script.php b/pkg_script.php index 1ff5dbf..72a71ba 100644 --- a/pkg_script.php +++ b/pkg_script.php @@ -1,9 +1,9 @@ isCompatible('5.0.0')) + if (!$version->isCompatible('5.0.0')) { - $this->app->enqueueMessage('😢 WT Contact everywhere with fields package doesn\'t support Joomla versions lower 5. Your Joomla version is '.$version->getShortVersion().'','error'); + $this->app->enqueueMessage('😢 WT Contact everywhere with fields package doesn\'t support Joomla versions lower 5. Your Joomla version is ' . $version->getShortVersion() . '', 'error'); + return false; } - + return true; } @@ -167,14 +168,14 @@ public function postflight(string $type, InstallerAdapter $adapter): bool } $element = strtoupper($adapter->getElement()); - $type = strtoupper($type); - $html = ' -