Skip to content

Commit 49b3fac

Browse files
committed
Merge remote-tracking branch 'origin/4.4-dev' into 5.1/upmerge/2024-05-16
2 parents 48a1759 + 638df97 commit 49b3fac

File tree

7 files changed

+29
-24
lines changed

7 files changed

+29
-24
lines changed

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

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_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_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) : ?>

administrator/language/en-GB/com_users.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ COM_USERS_MFA_ACTIVE="Uses Multi-factor Authentication"
253253
COM_USERS_MFA_ADD_AUTHENTICATOR_OF_TYPE="Add a new %s"
254254
COM_USERS_MFA_ADD_PAGE_HEAD="Add a Multi-factor Authentication Method"
255255
COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT="Backup Codes let you log into the site if your regular Multi-factor Authentication method does not work or you no longer have access to it. Each code can be used <em>only once</em>."
256-
COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT_HEAD="<a href=\"%s\">Print these codes</a> and keep them in your wallet."
256+
COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT_HEAD="<a href=\"%1s\" class=\"%2s\">Print these codes</a> and keep them in your wallet."
257257
COM_USERS_MFA_BACKUPCODES_RESET="Regenerate Backup Codes"
258258
COM_USERS_MFA_BACKUPCODES_RESET_INFO="Use the \"Regenerate Backup Codes\" button on the toolbar to generate a new set of Backup Codes. We recommend that you do this if you think your Backup Codes are compromised, e.g. someone got hold of a printout with them, or if you are running low on available Backup Codes."
259259
COM_USERS_MFA_EDIT_FIELD_DEFAULT="Make this the default Multi-factor Authentication method"

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
<h3 class="com-users-methods-list-method-record-title-container mb-1 fs-5">
8078
<?php if ($record->default) : ?>

language/en-GB/com_users.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ COM_USERS_MAIL_SEND_FAILURE_SUBJECT="Error sending email"
4545
COM_USERS_MFA_ADD_AUTHENTICATOR_OF_TYPE="Add a new %s"
4646
COM_USERS_MFA_ADD_PAGE_HEAD="Add a Multi-factor Authentication Method"
4747
COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT="Backup Codes let you log into the site if your regular Multi-factor Authentication method does not work or you no longer have access to it. Each code can be used <em>only once</em>."
48-
COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT_HEAD="<a href=\"%s\">Print these codes</a> and keep them in your wallet."
48+
COM_USERS_MFA_BACKUPCODES_PRINT_PROMPT_HEAD="<a href=\"%1s\" class=\"%2s\">Print these codes</a> and keep them in your wallet."
4949
COM_USERS_MFA_BACKUPCODES_RESET="Regenerate Backup Codes"
5050
COM_USERS_MFA_BACKUPCODES_RESET_INFO="Use the button below to generate a new set of Backup Codes. We recommend that you do this if you think your Backup Codes are compromised, e.g. someone got hold of a printout with them, or if you are running low on available Backup Codes."
5151
COM_USERS_MFA_EDIT_FIELD_DEFAULT="Make this the default Multi-factor Authentication method"

0 commit comments

Comments
 (0)