Skip to content

Commit 90c9aa3

Browse files
authored
Merge pull request #43500 from pe7er/5.2/upmerge/2024-05-21
[5.2] Upmerge 2024-05-21
2 parents 5580224 + b5315c8 commit 90c9aa3

File tree

45 files changed

+172
-80
lines changed

Some content is hidden

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

45 files changed

+172
-80
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ build/bump.php @rdeutz
1212
build/deleted_file_check.php @rdeutz
1313

1414
# Core/Extension Install/Update Tools
15-
administrator/components/com_joomlaupdate/* @rdeutz @zero-24
16-
libraries/src/Installer/* @rdeutz @zero-24
17-
libraries/src/Updater/* @rdeutz @zero-24
15+
administrator/components/com_joomlaupdate/* @rdeutz
16+
libraries/src/Installer/* @rdeutz
17+
libraries/src/Updater/* @rdeutz
1818

1919
# Automated Testing
2020
tests/* @hackwar @fancyFranci
@@ -24,9 +24,6 @@ tests/Unit/* @rdeutz @fancyFranci
2424
phpunit.xml.dist @rdeutz @hackwar @fancyFranci
2525
phpunit-pgsql.xml.dist @rdeutz @hackwar @fancyFranci
2626

27-
# HttpHeaders Plugin
28-
plugins/system/httpheaders/* @zero-24
29-
3027
# Workflow
3128
administrator/components/com_workflow/* @bembelimen @hleithner
3229
administrator/language/en-GB/com_workflow.ini @bembelimen @hleithner

.github/CONTRIBUTING.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ You are welcome to submit a contribution for review and possible inclusion in th
77
2) Follow the [Joomla! Coding Standards](https://developer.joomla.org/coding-standards.html).
88

99
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.
10-
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.
10+
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

14+
5) If you have a feature request, then please open a discussion to define the feature request and discuss possible solutions. Discussions can be converted into issues when the request is defined sufficiently that a developer can start coding the feature. In this process you will get feedback from the maintainers, if the feature is something for the Joomla core distribution or not.
15+
1416
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.
1517

1618
#### Branches
17-
PRs should usually be made to the `4.3-dev` branch as this contains the most recent version of the code.
18-
There are other branches available which serve specific purposes.
19+
While 4.4 is in maintenance mode, ie we are still fixing bugs, PRs should be made to the `4.4-dev` branch. Merged bugfixes will be upmerged into the current 5.x branch. If a bug is only in the 5.x series the PR should be made to the current 5.x branch (currently 5.1).
20+
1921

2022
| Branch | Purpose |
2123
| ------ | ------- |
22-
| 3.10-dev | Branch for the Joomla 3.x series. The 3.10 series release will now only include security patches. |
23-
| 4.3-dev | Branch for the current minor Joomla version.|
24-
| 4.4-dev | Branch for the next minor Joomla version. Commits to 4.3-dev will be applied to this branch as well. |
25-
| 5.0-dev | Branch for the next major Joomla version. New features go into this branch. |
24+
| 4.4-dev | Branch for the current 4.x Joomla version. Currently in maintenance mode |
25+
| 5.1-dev | Branch for the current 5.x Joomla version. Bugfix only for 5.x go into this branch. |
26+
| 5.2-dev | Branch for the next minor 5.x Joomla version. New features go into this branch. |
27+
| 6.0-dev | Branch for the next major Joomla version. New features that include a b/c break have to go into this branch. |
28+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Overview
2020
What is Joomla?
2121
---------------------
2222
* [Joomla!](https://www.joomla.org/about-joomla.html) is a **Content Management System** (CMS) which enables you to build websites and powerful online applications.
23-
* It is a simple and powerful web server application which requires a server with PHP and either MySQL or PostgreSQL to run. You can find [full technical requirements here](https://downloads.joomla.org/technical-requirements).
23+
* It is a simple and powerful web server application which requires a server with PHP and either MySQL, MariaDB or PostgreSQL to run. You can find [full technical requirements here](https://downloads.joomla.org/technical-requirements).
2424
* Joomla! is **free and Open Source software** distributed under the GNU General Public License version 2 or later.
2525

2626
Looking for an installable package?

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Joomla! 5.2 branch is under heavy development and not all links in this docu
1212
2- What is Joomla?
1313
* Joomla! is a Content Management System (CMS) which enables you to build websites and powerful online applications.
1414
* It's a free and Open Source software, distributed under the GNU General Public License version 2 or later.
15-
* This is a simple and powerful web server application and it requires a server with PHP and either MySQL, PostgreSQL or SQL Server to run.
15+
* This is a simple and powerful web server application and it requires a server with PHP and either MySQL, MariaDB or PostgreSQL to run.
1616
You can find full technical requirements here: https://downloads.joomla.org/technical-requirements.
1717

1818
3- Is Joomla! for you?

administrator/components/com_actionlogs/src/Helper/ActionlogsHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ public static function getLogContentTypeParams($context)
177177
*/
178178
public static function getHumanReadableLogMessage($log, $generateLinks = true)
179179
{
180+
static::loadActionLogPluginsLanguage();
180181
static $links = [];
181-
182-
$message = Text::_($log->message_language_key);
183-
$messageData = json_decode($log->message, true);
182+
$message = Text::_($log->message_language_key);
183+
$messageData = json_decode($log->message, true);
184184

185185
// Special handling for translation extension name
186186
if (isset($messageData['extension_name'])) {

administrator/components/com_admin/script.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2326,6 +2326,13 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
23262326
'/administrator/components/com_admin/sql/updates/postgresql/4.4.4-2024-03-28.sql',
23272327
'/administrator/modules/mod_post_installation_messages/mod_post_installation_messages.php',
23282328
'/media/vendor/punycode/LICENSE-MIT.txt',
2329+
// From 5.1.0 to 5.1.1
2330+
'/libraries/vendor/cweagans/composer-patches/LICENSE.md',
2331+
'/libraries/vendor/cweagans/composer-patches/src/PatchEvent.php',
2332+
'/libraries/vendor/cweagans/composer-patches/src/PatchEvents.php',
2333+
'/libraries/vendor/cweagans/composer-patches/src/Patches.php',
2334+
'/libraries/vendor/cweagans/composer-patches/tests/PatchEventTest.php',
2335+
'/libraries/vendor/laminas/laminas-diactoros/PATCHES.txt',
23292336
];
23302337

23312338
$folders = [
@@ -2585,6 +2592,11 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
25852592
'/libraries/src/Event/Router',
25862593
// From 5.1.0-beta2 to 5.1.0-rc1
25872594
'/media/vendor/punycode',
2595+
// From 5.1.0 to 5.1.1
2596+
'/libraries/vendor/cweagans/composer-patches/tests',
2597+
'/libraries/vendor/cweagans/composer-patches/src',
2598+
'/libraries/vendor/cweagans/composer-patches',
2599+
'/libraries/vendor/cweagans',
25882600
];
25892601

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

administrator/components/com_joomlaupdate/extract.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,9 @@ private function processTypeFileUncompressed(): bool
14001400
if ($this->dataReadLength == 0) {
14011401
// Before processing file data, ensure permissions are adequate
14021402
$this->setCorrectPermissions($this->fileHeader->file);
1403+
1404+
// This file is changed during the script's operation so we clear the status cache.
1405+
clearstatcache($this->fileHeader->file);
14031406
}
14041407

14051408
// Open the output file
@@ -1491,6 +1494,9 @@ private function processTypeFileCompressed(): bool
14911494
// Before processing file data, ensure permissions are adequate
14921495
$this->setCorrectPermissions($this->fileHeader->file);
14931496

1497+
// This file is changed during the script's operation so we clear the status cache.
1498+
clearstatcache($this->fileHeader->file);
1499+
14941500
// Open the output file
14951501
$outfp = @fopen($this->fileHeader->realFile, 'wb');
14961502

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ private function checkCompatibility($updateFileUrl, $joomlaTargetVersion)
16321632
$minimumStability = ComponentHelper::getParams('com_installer')->get('minimum_stability', Updater::STABILITY_STABLE);
16331633

16341634
$update = new Update();
1635-
$update->set('jversion.full', $joomlaTargetVersion);
1635+
$update->setTargetVersion($joomlaTargetVersion);
16361636
$update->loadFromXml($updateFileUrl, $minimumStability);
16371637

16381638
$compatibleVersions = $update->get('compatibleVersions');

administrator/components/com_redirect/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
name="mode"
1111
type="radio"
1212
label="COM_REDIRECT_MODE_LABEL"
13+
description="COM_REDIRECT_MODE_DESC"
1314
layout="joomla.form.field.radio.switcher"
1415
default="0"
1516
>

administrator/components/com_users/tmpl/methods/list.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ class="img-fluid"
6969
<?php foreach ($method['active'] as $record) : ?>
7070
<div class="com-users-methods-list-method-record d-flex flex-row flex-wrap justify-content-start border-top py-2">
7171
<div class="com-users-methods-list-method-record-info flex-grow-1 d-flex flex-column align-items-start gap-1">
72-
<?php if ($methodName === 'backupcodes') : ?>
73-
<?php if ($canAddEdit) : ?>
74-
<div class="alert alert-info mt-1 w-100">
75-
<?php echo Text::sprintf('COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT_HEAD', Route::_('index.php?option=com_users&task=method.edit&id=' . (int) $record->id . ($this->returnURL ? '&returnurl=' . $this->escape(urlencode($this->returnURL)) : '') . '&user_id=' . $this->user->id)) ?>
76-
</div>
77-
<?php endif ?>
72+
<?php if ($methodName === 'backupcodes' && $canAddEdit) : ?>
73+
<div class="alert alert-info mt-1 w-100">
74+
<?php echo Text::sprintf('COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT_HEAD', Route::_('index.php?option=com_users&task=method.edit&id=' . (int) $record->id . ($this->returnURL ? '&returnurl=' . $this->escape(urlencode($this->returnURL)) : '') . '&user_id=' . $this->user->id), 'text-decoration-underline') ?>
75+
</div>
7876
<?php else : ?>
7977
<h4 class="com-users-methods-list-method-record-title-container mb-1 fs-3">
8078
<?php if ($record->default) : ?>

0 commit comments

Comments
 (0)