Skip to content

Commit a130602

Browse files
authored
[5.1] Upmerges 2024-08-10
2 parents 2413195 + 7f400b8 commit a130602

File tree

25 files changed

+693
-608
lines changed

25 files changed

+693
-608
lines changed

administrator/components/com_content/src/Field/VotelistField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class VotelistField extends ListField
3737
*
3838
* @param \SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
3939
* @param mixed $value The form field value to validate.
40-
* @param string $group The field name group control value. This acts as as an array container for the field.
40+
* @param string $group The field name group control value. This acts as an array container for the field.
4141
* For example if the field has name="foo" and the group value is set to "bar" then the
4242
* full field name would end up being "bar[foo]".
4343
*

administrator/components/com_content/src/Field/VoteradioField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class VoteradioField extends RadioField
3737
*
3838
* @param \SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
3939
* @param mixed $value The form field value to validate.
40-
* @param string $group The field name group control value. This acts as as an array container for the field.
40+
* @param string $group The field name group control value. This acts as an array container for the field.
4141
* For example if the field has name="foo" and the group value is set to "bar" then the
4242
* full field name would end up being "bar[foo]".
4343
*

administrator/components/com_content/src/View/Articles/HtmlView.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ protected function addToolbar()
234234
if (
235235
$user->authorise('core.create', 'com_content')
236236
&& $user->authorise('core.edit', 'com_content')
237-
&& $user->authorise('core.execute.transition', 'com_content')
238237
) {
239238
$childBar->popupButton('batch', 'JTOOLBAR_BATCH')
240239
->popupType('inline')

administrator/components/com_fields/src/Field/FieldLayoutField.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ protected function getInput()
5656
// Build the query.
5757
$query->select('element, name')
5858
->from('#__extensions')
59-
->where('client_id = 0')
60-
->where('type = ' . $db->quote('template'))
61-
->where('enabled = 1');
59+
->where($db->quoteName('client_id') . ' = 0')
60+
->where($db->quoteName('type') . ' = ' . $db->quote('template'))
61+
->where($db->quoteName('enabled') . ' = 1');
6262

6363
// Set the query and load the templates.
6464
$db->setQuery($query);

administrator/components/com_users/src/Helper/Mfa.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function getConfigurationInterface(User $user): ?string
7777
/** @var CMSApplication $app */
7878
$app = Factory::getApplication();
7979

80-
if (!$app->getInput()->getCmd('option', '') === 'com_users') {
80+
if ($app->getInput()->getCmd('option', '') !== 'com_users') {
8181
$app->getLanguage()->load('com_users');
8282
$app->getDocument()
8383
->getWebAssetManager()

build/build-modules-js/javascript/compile-to-es2017.es6.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ const { renderSync } = require('sass-embedded');
1212
const { minifyJsCode } = require('./minify.es6.js');
1313
const { getPackagesUnderScope } = require('../init/common/resolve-package.es6.js');
1414

15+
function esmOrIife(file) {
16+
if (file.endsWith('core.es6.js') || file.endsWith('validate.es6.js')) {
17+
return 'iife';
18+
}
19+
return 'es';
20+
}
21+
1522
const getWcMinifiedCss = async (file) => {
1623
let scssFileExists = false;
1724
const scssFile = file.replace(`${sep}js${sep}`, `${sep}scss${sep}`).replace(/\.w-c\.es6\.js$/, '.scss');
@@ -126,7 +133,7 @@ module.exports.handleESMFile = async (file) => {
126133
});
127134

128135
bundle.write({
129-
format: 'es',
136+
format: esmOrIife(file),
130137
sourcemap: false,
131138
file: resolve(`${newPath}.js`),
132139
})

0 commit comments

Comments
 (0)