-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Backward Compatibility Module #46424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alikon
wants to merge
21
commits into
joomla:5.4-dev
Choose a base branch
from
alikon:mod-backword
base: 5.4-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+258
−62
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7556838
Backward Compatibility Module
alikon a7d3f52
typo
alikon 24c86dd
cs
alikon 9c732bf
Merge branch '5.4-dev' into mod-backword
alikon 2ce877a
Update sequence value for modules to 111
alikon 0f9af3e
phpstan
alikon 033e41c
Update administrator/language/en-GB/mod_backward.ini
alikon 311fdc2
Update administrator/language/en-GB/mod_backward.sys.ini
alikon 06096eb
Update administrator/modules/mod_backward/services/provider.php
alikon 504f605
Update administrator/modules/mod_backward/src/Dispatcher/Dispatcher.php
alikon d9ba4a9
Update administrator/modules/mod_backward/src/Dispatcher/Dispatcher.php
alikon dead98a
Update administrator/modules/mod_backward/mod_backward.xml
alikon 66c48b8
Add backward compatibility module and extension entries
alikon d057b8d
Add backward compatibility module and extension entries
alikon f6737e6
Merge branch '5.4-dev' into mod-backword
alikon 296a5ef
insert one time only
alikon 4175e5f
insert one time only
alikon 3bb2c75
Update administrator/components/com_admin/sql/updates/mysql/5.4.0.202…
alikon acf9b0c
same order
alikon 6eb4b56
same as mysql
alikon a8ab96d
Merge branch '5.4-dev' into mod-backword
alikon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
administrator/components/com_admin/sql/updates/mysql/5.4.0.2025-11.08.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) | ||
| SELECT 0, 'mod_backward', 'module', 'mod_backward', '', 1, 1, 1, 0, 1, '', '{}', '', 0, 0 | ||
| WHERE NOT EXISTS (SELECT * FROM `#__extensions` e WHERE e.`type` = 'module' AND e.`element` = 'mod_backward' AND e.`name` = 'mod_backward' AND e.`client_id` = 1); | ||
|
|
||
| INSERT INTO `#__modules` (`title`, `note`, `content`, `ordering`, `position`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `published`, `module`, `access`, `showtitle`, `params`, `client_id`, `language`) | ||
| SELECT 'Backward Compatibility', '', '', 1, 'status', 0, NULL, NULL, NULL, 1, 'mod_backward', 1, 1, '', 1, '*' | ||
| WHERE NOT EXISTS (SELECT * FROM `#__modules` m WHERE m.`title` = 'Backward Compatibility' AND m.`position` = 'status' AND m.`module` = 'mod_backward' AND m.`client_id` = 1); | ||
|
|
||
| INSERT INTO `#__modules_menu` (`moduleid`, `menuid`) | ||
| SELECT LAST_INSERT_ID(), 0 | ||
| WHERE NOT EXISTS (SELECT 1 FROM `#__modules_menu` WHERE `moduleid` = LAST_INSERT_ID() AND `menuid` = 0); | ||
15 changes: 15 additions & 0 deletions
15
administrator/components/com_admin/sql/updates/postgresql/5.4.0-2025-11-08.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") | ||
| SELECT 0, 'mod_backward', 'module', 'mod_backward', '', 1, 1, 1, 0, 1, '', '{}', '', 0, 0 | ||
| WHERE NOT EXISTS (SELECT * FROM "#__extensions" e WHERE e."type" = 'module' AND e."element" = 'mod_backward' AND e."name" = 'mod_backward' AND e."client_id" = 1); | ||
|
|
||
| INSERT INTO "#__modules" ("title", "note", "content", "ordering", "position", "checked_out", "checked_out_time", "publish_up", "publish_down", "published", "module", "access", "showtitle", "params", "client_id", "language") | ||
| SELECT 'Backward Compatibility', '', '', 1, 'status', 0, NULL, NULL, NULL, 1, 'mod_backward', 1, 1, '', 1, '*' | ||
| WHERE NOT EXISTS (SELECT * FROM "#__modules" m WHERE m."title" = 'Backward Compatibility' AND m."position" = 'status' AND m."module" = 'mod_backward' AND m."client_id" = 1); | ||
|
|
||
| INSERT INTO "#__modules_menu" ("moduleid", "menuid") | ||
| SELECT currval(pg_get_serial_sequence('#__modules','id')), 0 | ||
| WHERE NOT EXISTS ( | ||
| SELECT 1 FROM "#__modules_menu" | ||
| WHERE "moduleid" = currval(pg_get_serial_sequence('#__modules','id')) AND "menuid" = 0 | ||
| ); | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; Joomla! Project | ||
| ; (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| ; License GNU General Public License version 2 or later; see LICENSE.txt | ||
| ; Note : All ini files need to be saved as UTF-8 | ||
|
|
||
| MOD_BACKWARD="Joomla! Backward Compatibility Information" | ||
| MOD_BACKWARD_TEXT="Backward:" | ||
| MOD_BACKWARD_XML_DESCRIPTION="This module displays the which Joomla! Backward Compatibility plugins are enabled and is intended to be displayed in the 'status' position." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ; Joomla! Project | ||
| ; (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| ; License GNU General Public License version 2 or later; see LICENSE.txt | ||
| ; Note : All ini files need to be saved as UTF-8 | ||
|
|
||
| MOD_BACKWARD="Joomla! Backward Compatibility Information" | ||
| MOD_BACKWARD_XML_DESCRIPTION="This module displays the which Joomla! Backward Compatibility plugins are enabled and is intended to be displayed in the 'status' position." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <extension type="module" client="administrator" method="upgrade"> | ||
| <name>mod_backward</name> | ||
| <author>Joomla! Project</author> | ||
| <creationDate>2025-11</creationDate> | ||
| <copyright>(C) 2025 Open Source Matters, Inc.</copyright> | ||
| <license>GNU General Public License version 2 or later; see LICENSE.txt</license> | ||
| <authorEmail>[email protected]</authorEmail> | ||
| <authorUrl>www.joomla.org</authorUrl> | ||
| <version>1.0.0</version> | ||
| <description>MOD_BACKWARD_XML_DESCRIPTION</description> | ||
| <namespace path="src">Joomla\Module\Backward</namespace> | ||
| <files> | ||
| <folder module="mod_backward">services</folder> | ||
| <folder>src</folder> | ||
| <folder>tmpl</folder> | ||
| </files> | ||
| <languages> | ||
| <language tag="en-GB">language/en-GB/mod_backward.ini</language> | ||
| <language tag="en-GB">language/en-GB/mod_backward.sys.ini</language> | ||
| </languages> | ||
| <help key="Admin_Modules:_Joomla_Version_Information" /> | ||
| <config> | ||
| <fields name="params"> | ||
| <fieldset name="advanced"> | ||
| <field | ||
| name="layout" | ||
| type="modulelayout" | ||
| label="JFIELD_ALT_LAYOUT_LABEL" | ||
| class="form-select" | ||
| validate="moduleLayout" | ||
| /> | ||
|
|
||
| <field | ||
| name="moduleclass_sfx" | ||
| type="textarea" | ||
| label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" | ||
| rows="3" | ||
| validate="CssIdentifier" | ||
| /> | ||
| </fieldset> | ||
| </fields> | ||
| </config> | ||
| </extension> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @package Joomla.Administrator | ||
| * @subpackage mod_backward | ||
| * | ||
| * @copyright (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| \defined('_JEXEC') or die; | ||
|
|
||
| use Joomla\CMS\Extension\Service\Provider\HelperFactory; | ||
| use Joomla\CMS\Extension\Service\Provider\Module; | ||
| use Joomla\CMS\Extension\Service\Provider\ModuleDispatcherFactory; | ||
| use Joomla\DI\Container; | ||
| use Joomla\DI\ServiceProviderInterface; | ||
|
|
||
| return new class () implements ServiceProviderInterface { | ||
| /** | ||
| * Registers the service provider with a DI container. | ||
| * | ||
| * @param Container $container The DI container. | ||
| * | ||
| * @return void | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| */ | ||
| public function register(Container $container) | ||
| { | ||
| $container->registerServiceProvider(new ModuleDispatcherFactory('\\Joomla\\Module\\Backward')); | ||
| $container->registerServiceProvider(new HelperFactory('\\Joomla\\Module\\Backward\\Administrator\\Helper')); | ||
|
|
||
| $container->registerServiceProvider(new Module()); | ||
| } | ||
| }; |
42 changes: 42 additions & 0 deletions
42
administrator/modules/mod_backward/src/Dispatcher/Dispatcher.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @package Joomla.Administrator | ||
| * @subpackage mod_backward | ||
| * | ||
| * @copyright (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| namespace Joomla\Module\Backward\Administrator\Dispatcher; | ||
|
|
||
| use Joomla\CMS\Dispatcher\AbstractModuleDispatcher; | ||
| use Joomla\CMS\Plugin\PluginHelper; | ||
|
|
||
| // phpcs:disable PSR1.Files.SideEffects | ||
| \defined('_JEXEC') or die; | ||
| // phpcs:enable PSR1.Files.SideEffects | ||
|
|
||
| /** | ||
| * Dispatcher class for mod_backward | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| */ | ||
| class Dispatcher extends AbstractModuleDispatcher | ||
| { | ||
| /** | ||
| * Returns the layout data. | ||
| * | ||
| * @return array | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| */ | ||
| protected function getLayoutData() | ||
| { | ||
| $data = parent::getLayoutData(); | ||
| $data['compat'] = PluginHelper::isEnabled('behaviour', 'compat'); | ||
| $data['compat6'] = PluginHelper::isEnabled('behaviour', 'compat6'); | ||
|
|
||
| return $data; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @package Joomla.Administrator | ||
| * @subpackage mod_backward | ||
| * | ||
| * @copyright (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| defined('_JEXEC') or die; | ||
|
|
||
| use Joomla\CMS\Language\Text; | ||
|
|
||
| ?> | ||
| <?php if ($compat || $compat6) : ?> | ||
| <div class="header-item-content joomlaversion"> | ||
| <div class="header-item-text no-link"> | ||
| <span class="icon-shield-alt" aria-hidden="true"></span> | ||
| <span aria-hidden="true"><?php echo Text::_('MOD_BACKWARD_TEXT') . ($compat ? '5' : '') . ($compat && $compat6 ? ', ' : '') . ($compat6 ? '6' : ''); ?></span> | ||
| </div> | ||
| </div> | ||
| <?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.