Skip to content

Commit

Permalink
v.1.1.5 PHP 8 warning bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytolkachyov committed Oct 23, 2022
1 parent 3ada326 commit fb599b3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ PLG_WT_JSHOPPING_SCHEMA_ORG_AFTER_INSTALL = "Thank you for intalling extension"
PLG_WT_JSHOPPING_SCHEMA_ORG_AFTER_DISCOVER_INSTALL = "Thank you for intalling extension"
PLG_WT_JSHOPPING_SCHEMA_ORG_AFTER_UPDATE = "Thank you for updating extension"
PLG_WT_JSHOPPING_SCHEMA_ORG_MAYBE_INTERESTING="<h4>It might be interesting</h4><ul class=\"nav nav-tabs nav-stacked list-group\"><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JLSitemap - Phoca Gallery plugin for XML sitemap</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/dev/joomla-plugins/wt-on-fly-image-handler.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">WT On fly image handler for JoomShopping.</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomshopping/action-log-joomshopping.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Action log - JoomShopping. Free plugin for Joomla core action logs.</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomshopping/shablon-joomshopping-na-bootstrap-4-6.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JoomShopping Bootstrap 4.6 free template.</a></li></ul>"
PLG_WT_JSHOPPING_SCHEMA_ORG_WHATS_NEW="<h3>v.1.1.4 What's new?</h3><ul><li>Weight gain fixes</li><li>For the product card, getting the Itemid for generating the url in the micro markup has been changed</li><li>refactoring code for Joomla 4</li></ul>"
PLG_WT_JSHOPPING_SCHEMA_ORG_WHATS_NEW="<h3>v.1.1.5 What's new?</h3><p>PHP 8 warning bug fix.</p>"
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ PLG_WT_JSHOPPING_SCHEMA_ORG_AFTER_INSTALL = "Спасибо за установ
PLG_WT_JSHOPPING_SCHEMA_ORG_AFTER_DISCOVER_INSTALL = "Спасибо за установку расширения"
PLG_WT_JSHOPPING_SCHEMA_ORG_AFTER_UPDATE = "Спасибо за обновление расширения"
PLG_WT_JSHOPPING_SCHEMA_ORG_MAYBE_INTERESTING="<h4>Может быть интересно</h4><ul class=\"nav nav-tabs nav-stacked list-group\"><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomshopping/wt-sm-otpravka-pochta-ru.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Интеграция JoomShopping с Почтой России для Бизнеса</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomshopping/wt-joomshopping-favorite.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">WT JoomShopping Favorites, альтернативный список пожеланий (wishlist) для JoomShopping.</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomla-plugins/wt-joomshopping-bitrix24-pro.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">WT JoomShopping Bitrix24 PRO, плагин двухсторонней интеграции интернет-магазина JoomShopping и CRM Битрикс24.</a></li></ul>"
PLG_WT_JSHOPPING_SCHEMA_ORG_WHATS_NEW="<h3>v.1.1.4 Что нового?</h3><ul><li>Исправления получения веса</li><li>Для карточки товара изменено получение Itemid для формирования url в микроразметке</li><li>рефакторинг кода для Joomla 4</li></ul>"
PLG_WT_JSHOPPING_SCHEMA_ORG_WHATS_NEW="<h3>v.1.1.5 Что нового?</h3><p>Исправление предупреждений PHP 8</p>"
6 changes: 3 additions & 3 deletions wt_jshopping_schema_org.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function onBeforeDisplayProductListView($view, &$productlist)
}

// Добавляем товары
if (count($productlist->products) > 0)
if (isset($productlist->products) && count($productlist->products) > 0)
{
$product_description = $this->params->get('product_desc_is', 'short_description');
foreach ($productlist->products as $product)
Expand Down Expand Up @@ -391,7 +391,7 @@ public function onBeforeDisplayCategoryView($view)
}

// Добавляем вложенные категории
if (count($view->categories) > 0)
if (isset($view->categories) && count($view->categories) > 0)
{

foreach ($view->categories as $category)
Expand Down Expand Up @@ -459,7 +459,7 @@ public function onBeforeDisplayManufacturerView($view)
}

// Добавляем вложенные категории
if (count($view->rows) > 0)
if (isset($view->rows) && count($view->rows) > 0)
{

foreach ($view->rows as $manufacturer)
Expand Down
4 changes: 2 additions & 2 deletions wt_jshopping_schema_org.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="plugin" group="jshoppingproducts" method="upgrade">
<name>PLG_WT_JSHOPPING_SCHEMA_ORG</name>
<author>Sergey Tolkachyov</author>
<creationDate>17/09/2022</creationDate>
<creationDate>23/10/2022</creationDate>
<copyright>(c) 2022 Sergey Tolkachyov</copyright>
<license>GNU General Public License version 3 or later</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://web-tolk.ru</authorUrl>
<version>1.1.4</version>
<version>1.1.5</version>
<description>PLG_WT_JSHOPPING_SCHEMA_ORG_DESC</description>
<scriptfile>script.php</scriptfile>
<files>
Expand Down

0 comments on commit fb599b3

Please sign in to comment.