Skip to content

Commit 6a6c98a

Browse files
authored
Merge branch '7.0-dev' into 6.0-deprecated-components
2 parents d14a78d + db1571a commit 6a6c98a

94 files changed

Lines changed: 500 additions & 921 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.drone.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ name: package
55
steps:
66
- name: packager
77
image: joomlaprojects/docker-images:packager
8+
volumes:
9+
- name: composer-cache
10+
path: /tmp/composer-cache
11+
- name: npm-cache
12+
path: /tmp/npm-cache
13+
- name: fido-cache
14+
path: /drone/src/build/fido/
815
environment:
916
HTTP_ROOT: "https://artifacts.joomla.org/drone"
1017
DRONE_PULL_REQUEST: DRONE_PULL_REQUEST
@@ -36,6 +43,17 @@ steps:
3643
- rclone copy ./upload/ package:$package_root/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST/downloads/$DRONE_BUILD_NUMBER
3744
- /bin/add_github_status.sh "Download" "Prebuilt packages are available for download." "https://artifacts.joomla.org/drone/${DRONE_REPO}/${DRONE_BRANCH}/${DRONE_PULL_REQUEST}/downloads/${DRONE_BUILD_NUMBER}"
3845

46+
volumes:
47+
- name: composer-cache
48+
host:
49+
path: /tmp/composer-cache
50+
- name: fido-cache
51+
host:
52+
path: /tmp/fido-cache
53+
- name: npm-cache
54+
host:
55+
path: /tmp/npm-cache
56+
3957
trigger:
4058
repo:
4159
- joomla/joomla-cms
@@ -47,6 +65,13 @@ name: nightly_build
4765
steps:
4866
- name: prepare
4967
image: joomlaprojects/docker-images:packager
68+
volumes:
69+
- name: composer-cache
70+
path: /tmp/composer-cache
71+
- name: npm-cache
72+
path: /tmp/npm-cache
73+
- name: fido-cache
74+
path: /drone/src/build/fido/
5075
commands:
5176
- composer --version
5277
- mkdir -p transfer
@@ -92,6 +117,17 @@ steps:
92117
status:
93118
- failure
94119

120+
volumes:
121+
- name: composer-cache
122+
host:
123+
path: /tmp/composer-cache
124+
- name: fido-cache
125+
host:
126+
path: /tmp/fido-cache
127+
- name: npm-cache
128+
host:
129+
path: /tmp/npm-cache
130+
95131
trigger:
96132
event:
97133
- cron
@@ -101,6 +137,6 @@ trigger:
101137

102138
---
103139
kind: signature
104-
hmac: b62009a5a3a1303955cdf02e0d38850e7065febe2e8b06731f6c740a89dfd6e9
140+
hmac: b35a8a70b20200d91799b8251df1cae7313c8ca78bd2ccc889c29fb10940d5c8
105141

106142
...

.php-cs-fixer.dist.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@
5757
->notPath('/atum/')
5858
// Ingore cache and logs
5959
->notPath('/cache/')
60-
->notPath('/logs/')
61-
// Ignore psr12 scripts because they contain invalid syntax
62-
->notPath('/psr12/')
63-
->notName('github_rebase.php');
60+
->notPath('/logs/');
6461

6562
$config = new PhpCsFixer\Config();
6663
$config

administrator/components/com_admin/script.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ protected function uninstallExtensions()
287287
* ['type' => 'plugin', 'element' => 'demotasks', 'folder' => 'task', 'client_id' => 0, 'pre_function' => null],
288288
* ['type' => 'plugin', 'element' => 'compat', 'folder' => 'system', 'client_id' => 0, 'pre_function' => 'migrateCompatPlugin'],
289289
*/
290-
// Uninstall the old joomla 5 compatibility plugin
291-
['type' => 'plugin', 'element' => 'compat', 'folder' => 'behaviour', 'client_id' => 0, 'pre_function' => null],
290+
// Uninstall the old joomla 6 compatibility plugin
291+
['type' => 'plugin', 'element' => 'compat6', 'folder' => 'behaviour', 'client_id' => 0, 'pre_function' => null],
292292
];
293293

294294
$db = Factory::getDbo();

administrator/components/com_admin/sql/updates/mysql/7.0.0-2026-03-18.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
-- Insert compat7 plugin
33
--
44
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`)
5-
SELECT 0, 'plg_behaviour_compat7', 'plugin', 'compat7', 'behaviour', 0, 0, 1, 0, 1, '', '{"legacy_classes":"1"}', '', 1, 0
5+
SELECT 0, 'plg_behaviour_compat7', 'plugin', 'compat7', 'behaviour', 0, 0, 1, 0, 1, '', '{"classes_aliases":"0","legacy_classes":"1","removed_asset":"1"}', '', 1, 0
66
WHERE NOT EXISTS (SELECT * FROM `#__extensions` e WHERE e.`type` = 'plugin' AND e.`element` = 'compat7' AND e.`folder` = 'behaviour' AND e.`client_id` = 0);

administrator/components/com_admin/sql/updates/postgresql/7.0.0-2026-03-18.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
-- Insert compat7 plugin
33
--
44
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state")
5-
SELECT 0, 'plg_behaviour_compat7', 'plugin', 'compat7', 'behaviour', 0, 0, 1, 0, 1, '', '{"legacy_classes":"1"}', '', 1, 0
5+
SELECT 0, 'plg_behaviour_compat7', 'plugin', 'compat7', 'behaviour', 0, 0, 1, 0, 1, '', '{"classes_aliases":"0","legacy_classes":"1","removed_asset":"1"}', '', 1, 0
66
WHERE NOT EXISTS (SELECT * FROM "#__extensions" e WHERE e."type" = 'plugin' AND e."element" = 'compat7' AND e."folder" = 'behaviour' AND e."client_id" = 0);

administrator/components/com_admin/src/Model/SysinfoModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function &getInfo(): array
314314

315315
$this->info = [
316316
'version' => (new Version())->getLongVersion(),
317-
'compatpluginenabled' => PluginHelper::isEnabled('behaviour', 'compat6'),
317+
'compatpluginenabled' => PluginHelper::isEnabled('behaviour', 'compat' . Version::MAJOR_VERSION),
318318
'compatpluginparameters' => $this->getCompatPluginParameters(),
319319
'phpversion' => PHP_VERSION,
320320
'php' => php_uname(),
@@ -334,7 +334,7 @@ public function &getInfo(): array
334334

335335
private function getCompatPluginParameters()
336336
{
337-
$record = ExtensionHelper::getExtensionRecord('compat6', 'plugin', 0, 'behaviour');
337+
$record = ExtensionHelper::getExtensionRecord('compat' . Version::MAJOR_VERSION, 'plugin', 0, 'behaviour');
338338

339339
if ($record) {
340340
$params = new Registry($record->params);

0 commit comments

Comments
 (0)