Skip to content

Commit a2aab9c

Browse files
committed
Merge branch '4.0-dev' into 4.1-dev
2 parents 9514f1b + f35729c commit a2aab9c

File tree

42 files changed

+2135
-10166
lines changed

Some content is hidden

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

42 files changed

+2135
-10166
lines changed

.github/CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ You are welcome to submit a contribution for review and possible inclusion in th
66

77
2) Follow the [Joomla! Coding Standards](https://developer.joomla.org/coding-standards.html).
88

9-
3) When filing an issue or opening a PR, please include a clear title and description. The title should be a short summary of an issue and, if possible, should include a reference to an open issue. For example, `Invalid Query in com_admin (Ref #1234)` would be sufficient. All issues and PRs should include a description with as much detail as possible.
9+
3) When filing an issue or opening a PR, please include a clear title and description. The title should be a short summary of an issue and, if possible, should include a reference to an open issue. For example, `Invalid Query in com_admin (Ref #1234)` would be sufficient. All issues and PRs should include a description with as much detail as possible.
1010
If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission.
1111

1212
4) Report security issues to the Joomla! Security Strike Team (JSST) at [email protected] or use the [JSST contact form](https://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues.
1313

1414
Please be patient as not all items will be tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.
1515

1616
#### Branches
17-
PRs should usually be made to the `staging` branch as this contains the most recent version of the code.
17+
PRs should usually be made to the `4.0-dev` branch as this contains the most recent version of the code.
1818
There are other branches available which serve specific purposes.
1919

2020
| Branch | Purpose |
2121
| ------ | ------- |
22-
| staging | Current codebase. Branch for the next minor Joomla version. New backward compatible features go into this branch. The 3.9.0 release will include the Privacy Tools Suite features. |
23-
| 3.10-dev | Branch for the next minor Joomla version. The 3.10.0 release will only include compatibility features for 4.0. Commits to staging will be applied to this branch as well. |
24-
| 4.0-dev | Branch for the next major Joomla version. New features go into this branch. Commits to staging will be applied to this branch as well. |
22+
| 3.10-dev | Branch for the Joomla 3.x series. The 3.10 series release will only include compatibility features for 4.x as well as bugfixes and security patches. |
23+
| 4.0-dev | Branch for the Joomla 4.0 series. Commits to 3.10-dev will be applied to this branch as well. |
24+
| 4.1-dev | Branch for the next minor Joomla version. New features go into this branch. Commits to 4.0-dev will be applied to this branch as well. |

administrator/components/com_admin/script.php

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4857,20 +4857,6 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
48574857
'/media/system/css/jquery.Jcrop.min.css',
48584858
'/media/system/css/modal.css',
48594859
'/media/system/css/system.css',
4860-
'/media/system/images/modal/bg_e.png',
4861-
'/media/system/images/modal/bg_n.png',
4862-
'/media/system/images/modal/bg_ne.png',
4863-
'/media/system/images/modal/bg_nw.png',
4864-
'/media/system/images/modal/bg_s.png',
4865-
'/media/system/images/modal/bg_se.png',
4866-
'/media/system/images/modal/bg_sw.png',
4867-
'/media/system/images/modal/bg_w.png',
4868-
'/media/system/images/modal/closebox.png',
4869-
'/media/system/images/modal/spinner.gif',
4870-
'/media/system/images/notice-alert.png',
4871-
'/media/system/images/notice-download.png',
4872-
'/media/system/images/notice-info.png',
4873-
'/media/system/images/notice-note.png',
48744860
'/media/system/js/associations-edit-uncompressed.js',
48754861
'/media/system/js/associations-edit.js',
48764862
'/media/system/js/calendar-setup-uncompressed.js',
@@ -6067,6 +6053,17 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
60676053
'/media/system/js/fields/calendar-locales/zh-CN.min.js.gz',
60686054
'/media/system/js/fields/calendar-locales/zh-TW.min.js',
60696055
'/media/system/js/fields/calendar-locales/zh-TW.min.js.gz',
6056+
// 4.0 from RC 5 to RC 6
6057+
'/media/templates/cassiopeia/js/mod_menu/menu-metismenu-es5.js',
6058+
'/media/templates/cassiopeia/js/mod_menu/menu-metismenu-es5.min.js',
6059+
'/media/templates/cassiopeia/js/mod_menu/menu-metismenu-es5.min.js.gz',
6060+
'/media/templates/cassiopeia/js/mod_menu/menu-metismenu.js',
6061+
'/media/templates/cassiopeia/js/mod_menu/menu-metismenu.min.js',
6062+
'/media/templates/cassiopeia/js/mod_menu/menu-metismenu.min.js.gz',
6063+
'/templates/cassiopeia/css/vendor/fontawesome-free/fontawesome.css',
6064+
'/templates/cassiopeia/css/vendor/fontawesome-free/fontawesome.min.css',
6065+
'/templates/cassiopeia/css/vendor/fontawesome-free/fontawesome.min.css.gz',
6066+
'/templates/cassiopeia/scss/vendor/fontawesome-free/fontawesome.scss',
60706067
);
60716068

60726069
$folders = array(
@@ -6139,7 +6136,6 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
61396136
'/plugins/content/confirmconsent/fields',
61406137
'/plugins/captcha/recaptcha/postinstall',
61416138
'/plugins/authentication/gmail',
6142-
'/media/system/images/modal',
61436139
'/media/plg_twofactorauth_totp/js',
61446140
'/media/plg_twofactorauth_totp',
61456141
'/media/plg_system_highlight',
@@ -7309,6 +7305,12 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
73097305
'/administrator/components/com_admin/tmpl/profile',
73107306
'/administrator/components/com_admin/src/View/Profile',
73117307
'/administrator/components/com_admin/forms',
7308+
// 4.0 from RC 5 to RC 6
7309+
'/templates/cassiopeia/scss/vendor/fontawesome-free',
7310+
'/templates/cassiopeia/css/vendor/fontawesome-free',
7311+
'/media/templates/cassiopeia/js/mod_menu',
7312+
'/media/templates/cassiopeia/js',
7313+
'/media/templates/cassiopeia',
73127314
);
73137315

73147316
$status['files_checked'] = $files;

administrator/components/com_installer/src/Model/UpdatesitesModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public function rebuild(): void
380380
{
381381
/**
382382
* Search if the extension exists in the extensions table. Excluding Joomla
383-
* core extensions (id < 10000) and discovered extensions.
383+
* core extensions and discovered but not yet installed extensions.
384384
*/
385385

386386
$name = (string) $manifest->name;

administrator/components/com_joomlaupdate/src/Model/UpdateModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,6 @@ protected function translateExtensionName(&$item)
17071707
|| $lang->load($extension, $source);
17081708

17091709
// Translate the extension name if possible
1710-
$item->name = Text::_($item->name);
1710+
$item->name = strip_tags(Text::_($item->name));
17111711
}
17121712
}

administrator/components/com_menus/src/Helper/MenusHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ protected static function installPresetItems($node, $menutype)
515515
'menutype' => $menutype,
516516
'type' => $item->type,
517517
'title' => $item->title,
518-
'parent_id' => $item->getParent()->id,
518+
'parent_id' => (int) $item->getParent()->id,
519519
'client_id' => 1,
520520
);
521521
$table->load($keys);
@@ -541,7 +541,7 @@ protected static function installPresetItems($node, $menutype)
541541
'menutype' => $menutype,
542542
'type' => $item->type,
543543
'link' => $item->link,
544-
'parent_id' => $item->getParent()->id,
544+
'parent_id' => (int) $item->getParent()->id,
545545
'client_id' => 1,
546546
);
547547
$table->load($keys);
@@ -577,7 +577,7 @@ protected static function installPresetItems($node, $menutype)
577577
'img' => $item->class,
578578
'access' => $item->access,
579579
'component_id' => array_search($item->element, $components) ?: 0,
580-
'parent_id' => $item->getParent()->id,
580+
'parent_id' => (int) $item->getParent()->id,
581581
'client_id' => 1,
582582
'published' => 1,
583583
'language' => '*',

administrator/templates/atum/html/layouts/status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
echo '<div class="header-item">' . $mod . '</div>';
5353
}
5454
?>
55-
<div class="header-more dropdown d-none" id="header-more-items" >
55+
<div class="header-more d-none" id="header-more-items" >
5656
<button class="header-more-btn dropdown-toggle" type="button" title="<?php echo Text::_('TPL_ATUM_MORE_ELEMENTS'); ?>" data-bs-toggle="dropdown" aria-expanded="false">
5757
<div class="header-item-icon"><span class="icon-ellipsis-h" aria-hidden="true"></span></div>
5858
<div class="visually-hidden"><?php echo Text::_('TPL_ATUM_MORE_ELEMENTS'); ?></div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// com_joomlaupdate
2+
3+
.com_joomlaupdate {
4+
caption {
5+
caption-side: top;
6+
}
7+
}

administrator/templates/atum/scss/template.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
@import "pages/com_config";
6262
@import "pages/com_content";
6363
@import "pages/com_cpanel";
64+
@import "pages/com_joomlaupdate";
6465
@import "pages/com_modules";
6566
@import "pages/com_tags";
6667
@import "pages/com_privacy";

administrator/templates/atum/scss/vendor/joomla-custom-elements/joomla-tab.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ joomla-tab {
5151
border-bottom: 0;
5252
box-shadow: none;
5353

54+
&:focus-visible {
55+
z-index: 1;
56+
}
57+
5458
&[aria-expanded=true],
5559
&:focus,
5660
&:hover {

build/build-modules-js/init/minify-vendor.es6.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { lstat, readFile, writeFile } = require('fs-extra');
2-
const { sep } = require('path');
2+
const { sep, basename } = require('path');
33
const recursive = require('recursive-readdir');
44
const { minify } = require('terser');
55

@@ -18,8 +18,8 @@ const folders = [
1818
let allFiles = [];
1919

2020
const noMinified = [
21-
'media/vendor/accessibility/js/accessibility.min.js',
22-
'media/vendor/short-and-sweet/js/short-and-sweet.min.js',
21+
'accessibility.min.js',
22+
'short-and-sweet.min.js',
2323
];
2424

2525
const alreadyMinified = [
@@ -47,7 +47,7 @@ const minifiedExists = async (file) => {
4747
* @returns {Promise}
4848
*/
4949
const minifyJS = async (file) => {
50-
const needsDotJS = noMinified.includes(file.replace(`${RootPath}${sep}`, ''));
50+
const needsDotJS = noMinified.includes(basename(file));
5151
if (file.endsWith('.min.js') && !needsDotJS) {
5252
return;
5353
}

0 commit comments

Comments
 (0)