Skip to content

Commit 3994cc5

Browse files
authored
[5.1] Upmerge 2024-02-27 (#42902)
2 parents ff55280 + 4cf3281 commit 3994cc5

File tree

80 files changed

+434
-144
lines changed

Some content is hidden

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

80 files changed

+434
-144
lines changed

.github/workflows/create-translation-pull-request-v5.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ jobs:
7373
env:
7474
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
7575
run: |
76-
gh pr list -R joomla/joomla-cms --state open --author joomla-translation-bot -S "Translation Update" | grep -v "No pull" || \
77-
gh pr create --title "Translation Update" --body "Automatically created pull request based on core-translation repository changes" -R joomla/joomla-cms --base 5.0-dev
76+
gh pr list -R joomla/joomla-cms --state open --author joomla-translation-bot -S "[5.x] Translation Update" | grep -v "No pull" || \
77+
gh pr create --title "[5.x] Translation Update" --body "Automatically created pull request based on core-translation repository changes" -R joomla/joomla-cms --base 5.0-dev

administrator/components/com_finder/src/Indexer/Token.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ public function __construct($term, $lang, $spacer = ' ')
144144
// Tokens can be a single word or an array of words representing a phrase.
145145
if (\is_array($term)) {
146146
// Populate the token instance.
147+
$langs = array_fill(0, \count($term), $lang);
147148
$this->term = implode($spacer, $term);
148-
$this->stem = implode($spacer, array_map([Helper::class, 'stem'], $term, [$lang]));
149+
$this->stem = implode($spacer, array_map([Helper::class, 'stem'], $term, $langs));
149150
$this->numeric = false;
150151
$this->common = false;
151152
$this->phrase = true;

administrator/components/com_tags/tmpl/tags/emptystate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$displayData = [
1616
'textPrefix' => 'COM_TAGS',
1717
'formURL' => 'index.php?option=com_tags&task=tag.add',
18-
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/J3.x:How_To_Use_Content_Tags_in_Joomla!',
18+
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/J4.x:How_To_Use_Content_Tags_in_Joomla',
1919
'icon' => 'icon-tags tags',
2020
];
2121

administrator/components/com_users/src/Controller/MethodController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ public function save($cachable = false, $urlparams = []): void
385385
$url = Route::_($nonSefUrl, false);
386386
$this->setRedirect($url, $record->getError(), 'error');
387387

388-
// Method updated, destroy other active sessions
389-
UserHelper::destroyUserSessions($userId, true);
390-
391388
return;
392389
}
393390

administrator/components/com_users/src/Controller/UserController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public function save($key = null, $urlVar = null)
118118
}
119119

120120
// If a user has to renew a password but has no permission for users
121-
if (!$this->app->getIdentity()->authorise('core.admin', 'com_users')) {
122-
$this->setRedirect('index.php');
121+
if ($task === 'save' && !$this->app->getIdentity()->authorise('core.manage', 'com_users')) {
122+
$this->setRedirect(Uri::base());
123123
}
124124

125125
return $result;

administrator/language/en-GB/lib_joomla.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ JLIB_FORM_SELECT_USER="Select a User"
347347
JLIB_FORM_VALIDATE_FIELD_INVALID="Invalid field: %s"
348348
JLIB_FORM_VALIDATE_FIELD_REQUIRED="Field required: %s"
349349
JLIB_FORM_VALIDATE_FIELD_RULE_MISSING="Validation Rule missing: %s"
350+
JLIB_FORM_VALIDATE_FIELD_URL_INJECTION_DETECTED="Invalid URL: A code injection has been detected in %1$s."
350351
JLIB_FORM_VALIDATE_FIELD_URL_SCHEMA_MISSING="Invalid URL: URL schema is missing in %1$s. Please add one of the following at the beginning: %2$s."
351352
JLIB_FORM_VALIDATE_FIELD_URL_INJECTION_DETECTED="Invalid URL: A code injection has been detected in %1$s."
352353
JLIB_FORM_VALUE_CACHE_APCU="APC User Cache"

administrator/modules/mod_feed/tmpl/default.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</h2>
5757
<?php endif;
5858
// Feed date
59-
if ($params->get('rssdate', 1)) : ?>
59+
if ($params->get('rssdate', 1) && ($feed->publishedDate !== null)) : ?>
6060
<h3>
6161
<?php echo HTMLHelper::_('date', $feed->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
6262
</h3>
@@ -93,7 +93,7 @@
9393
<h5 class="feed-link"><?php echo trim($feed[$i]->title); ?></h5>
9494
<?php endif; ?>
9595

96-
<?php if ($params->get('rssitemdate', 0)) : ?>
96+
<?php if ($params->get('rssitemdate', 0) && $feed[$i]->publishedDate !== null) : ?>
9797
<div class="feed-item-date">
9898
<?php echo HTMLHelper::_('date', $feed[$i]->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
9999
</div>

build/media_source/legacy/js/toolbar.es5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Joomla = window.Joomla || {};
4343
// Handle Help buttons
4444
document.querySelectorAll('.js-toolbar-help-btn').forEach((button) => {
4545
button.addEventListener('click', (event) => {
46-
const btn = event.target;
46+
const btn = event.currentTarget;
4747
const winprops = `height=${parseInt(btn.dataset.height, 10)},width=${parseInt(btn.dataset.width, 10)},top=${(window.innerHeight - parseInt(btn.dataset.height, 10)) / 2},`
4848
+ `left=${(window.innerWidth - parseInt(btn.dataset.width, 10)) / 2},scrollbars=${btn.dataset.width === 'true'},resizable`;
4949

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/incompatible.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)