Skip to content

Commit

Permalink
v.2.0.1 Fixed an installation error without the Joomla 5 backward com…
Browse files Browse the repository at this point in the history
…patibility plugin enabled.
  • Loading branch information
sergeytolkachyov committed Jan 20, 2025
1 parent dc37ad3 commit 40d97b1
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion language/en-GB/plg_jlsitemap_swjprojects.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PLG_SWJPROJECTS_AFTER_DISCOVER_INSTALL = "Thank you for installing the extension
PLG_SWJPROJECTS_AFTER_UPDATE = "Thank you for updating the extension"
PLG_SWJPROJECTS_AFTER_UNINSTALL = "So sorry..."
PLG_SWJPROJECTS_MAYBE_INTERESTING="<h4>It may 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/web-assets\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Joomla 4 & Joomla 5 Web Assets.</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/en/dev/joomshopping\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JoomShopping extensions</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Joomla plugins</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/en/dev/joomla-modules\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Joomla modules</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/en/dev/components\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Joomla components</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/en/dev/joomla-libraries\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Joomla libraries for developers.</a></li></ul>"
PLG_SWJPROJECTS_WHATS_NEW="<h3>v.2.0.0 What's new?</h3><h4>Joomla 5</h4><p>The plugin has been rewritten according to the architecture of Joomla 5 extensions. This means that it will work seamlessly in Joomla 6 as well.</p><h4>Visible projects</h4><p>Added support for visible projects. Hidden projects are no longer included in the site map.</p><h4>SW JProjects 2.0.0</h4><p>Support for SW Projects 2.0.0. The plugin will not work with earlier versions of the component.</p><h4>Download</h4><p>Download <a href=\"https://web-tolk.ru/dev/components/sw-jprojects\" target=\"_blank\">SW JProjects</a></p>"
PLG_SWJPROJECTS_WHATS_NEW="<h3>v.2.0.1 What's new?</h3><h4>Bug fixes</h4><p>Fixed an installation error without the Joomla 5 backward compatibility plugin enabled.</p><h4>Download</h4><p>Download <a href=\"https://web-tolk.ru/dev/components/sw-jprojects\" target=\"_blank\">SW JProjects</a></p>"
PLG_SWJPROJECTS_JOOMLARU_TELEGRAM_CHAT = "Joomla community in Telegram"
PLG_SWJPROJECTS_WEBTOLK_TELEGRAM_CHANNEL = "@WebTolkRu in Telegram"
PLG_SWJPROJECTS_ERROR_COMPATIBLE_PHP = "This version is compatible only with PHP %s and later"
Expand Down
2 changes: 1 addition & 1 deletion language/ru-RU/plg_jlsitemap_swjprojects.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PLG_SWJPROJECTS_AFTER_DISCOVER_INSTALL = "Спасибо за установку
PLG_SWJPROJECTS_AFTER_UPDATE = "Спасибо за обновление расширения"
PLG_SWJPROJECTS_AFTER_UNINSTALL = "Очень жаль..."
PLG_SWJPROJECTS_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/web-assets\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Joomla 4 & Joomla 5 Web Assets</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomshopping\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Расширения для JoomShopping</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomla-plugins\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Плагины Joomla</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomla-modules\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Модули Joomla</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/components\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Компоненты Joomla</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/biblioteki\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Библиотеки Joomla для разработчиков</a></li></ul>"
PLG_SWJPROJECTS_WHATS_NEW="<h3>v.2.0.0 Что нового?</h3><h4>Joomla 5</h4><p>Плагин переписан по архитектуре расширений Joomla 5. Это означает, что он будет работать без проблем и в Joomla 6.</p><h4>Скрытые проекты</h4><p>Добавлена поддержка видимых проектов. Скрытые проекты теперь не попадают в карту сайта.</p><h4>SW JProjects 2.0.0</h4><p>Поддержка SW JProjects 2.0.0. С более ранними версиями компонента плагин работать не будет.</p><h4>Скачать</h4><p>Скачать <a href=\"https://web-tolk.ru/dev/components/sw-jprojects\" target=\"_blank\">SW JProjects</a></p>"
PLG_SWJPROJECTS_WHATS_NEW="<h3>v.2.0.1 Что нового?</h3><h4>Исправление ошибок</h4><p>Исправлена ошибка установки без включённого плагина обратной совместимости Joomla 5.</p><h4>Скачать</h4><p>Скачать <a href=\"https://web-tolk.ru/dev/components/sw-jprojects\" target=\"_blank\">SW JProjects</a></p>"
PLG_SWJPROJECTS_JOOMLARU_TELEGRAM_CHAT="Joomla сообщество в Телеграм"
PLG_SWJPROJECTS_WEBTOLK_TELEGRAM_CHANNEL = "@WebTolkRu в Telegram"
PLG_SWJPROJECTS_ERROR_COMPATIBLE_JOOMLA = "Эта версия совместима только с Joomla %s и выше."
Expand Down
5 changes: 2 additions & 3 deletions script.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;

\defined('_JEXEC') or die;
defined('_JEXEC') or die;

return new class () implements ServiceProviderInterface {
public function register(Container $container)
Expand Down Expand Up @@ -85,7 +85,6 @@ public function __construct(AdministratorApplication $app)
*/
public function install(InstallerAdapter $adapter): bool
{
$this->enablePlugin($adapter);

return true;
}
Expand Down Expand Up @@ -236,4 +235,4 @@ protected function checkCompatible(string $element): bool
}
});
}
};
};
6 changes: 3 additions & 3 deletions services/provider.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php
/**
* @package JLSitemap - SW JPojects plugin
* @version 2.0.0
* @version 2.0.1
* @author Sergey Tolkachyov - web-tolk.ru
* @copyright Copyright (c) 2018-2024 Sergey Tolkachyov. All rights reserved.
* @license GNU General Public License v3.0
* @link https://web-tolk.ru/dev/joomla-plugins/jlsitemap-swjprojects
*/

\defined('_JEXEC') || die;

use Joomla\CMS\Extension\PluginInterface;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
Expand All @@ -18,6 +16,8 @@
use Joomla\Event\DispatcherInterface;
use Joomla\Plugin\Jlsitemap\Swjprojects\Extension\Swjprojects;

defined('_JEXEC') || die;

return new class () implements ServiceProviderInterface {
/**
* Registers the service provider with a DI container.
Expand Down
8 changes: 5 additions & 3 deletions src/Extension/Swjprojects.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package JLSitemap - SW JPojects plugin
* @version 2.0.0
* @version 2.0.1
* @author Sergey Tolkachyov - web-tolk.ru
* @copyright Copyright (c) 2018-2024 Sergey Tolkachyov. All rights reserved.
* @license GNU General Public License v3.0
Expand All @@ -19,8 +19,10 @@
use Joomla\Event\Event;
use Joomla\Event\SubscriberInterface;
use Joomla\Registry\Registry;
use function defined;
use function implode;

\defined('_JEXEC') or die;
defined('_JEXEC') or die;

final class Swjprojects extends CMSPlugin implements SubscriberInterface
{
Expand Down Expand Up @@ -529,4 +531,4 @@ public function onGetUrls(Event $event)
$event->setArgument(0, $urls);
}

}
}
6 changes: 4 additions & 2 deletions src/Fields/PlugininfoField.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<?php
/**
* @package JLSitemap - SW JPojects plugin
* @version 2.0.0
* @version 2.0.1
* @author Sergey Tolkachyov - web-tolk.ru
* @copyright Copyright (c) 2018-2024 Sergey Tolkachyov. All rights reserved.
* @license GNU General Public License v3.0
* @link https://web-tolk.ru/dev/joomla-plugins/jlsitemap-swjprojects
*/

namespace Joomla\Plugin\Jlsitemap\Swjprojects\Fields;
\defined('_JEXEC') or die;

use Joomla\CMS\Form\Field\NoteField;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use function defined;

defined('_JEXEC') or die;

class PlugininfoField extends NoteField
{
Expand Down
8 changes: 4 additions & 4 deletions swjprojects.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" group="jlsitemap" method="upgrade">
<name>PLG_JLSITEMAP_SWJPROJECTS</name>
<name>PLG_SWJPROJECTS</name>
<author>Septdir Workshop, Sergey Tolkachyov</author>
<creationDate>June 2024</creationDate>
<copyright>Copyright (c) 2018 - 2024 Septdir Workshop, Sergey Tolkachyov. All rights reserved.</copyright>
<creationDate>20.01.2025</creationDate>
<copyright>Copyright (c) 2018 - 2025 Septdir Workshop, Sergey Tolkachyov. All rights reserved.</copyright>
<license>https://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://web-tolk.ru</authorUrl>
<version>2.0.0</version>
<version>2.0.1</version>
<description>PLG_SWJPROJECTS_DESC</description>
<namespace path="src">Joomla\Plugin\Jlsitemap\Swjprojects</namespace>
<scriptfile>script.php</scriptfile>
Expand Down

0 comments on commit 40d97b1

Please sign in to comment.