Skip to content

Commit 98d4fe3

Browse files
committed
Merge remote-tracking branch 'upstream/5.3-dev' into 5.4-upmerge-2025-05-13
2 parents 78140d8 + 8665c4d commit 98d4fe3

File tree

17 files changed

+93
-191
lines changed

17 files changed

+93
-191
lines changed

administrator/components/com_actionlogs/src/Model/ActionlogModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ protected function sendNotificationEmails($messages, $username, $context)
163163
$m = [];
164164
$m['extension'] = Text::_($extension);
165165
$m['message'] = ActionlogsHelper::getHumanReadableLogMessage($message);
166-
$m['date'] = HTMLHelper::_('date', $message->log_date, 'Y-m-d H:i:s T', 'UTC');
166+
$tzOffset = Factory::getApplication()->get('offset');
167+
$m['date'] = HTMLHelper::_('date', $message->log_date, 'Y-m-d H:i:s T', $tzOffset);
167168
$m['username'] = $username;
168169
$temp[] = $m;
169170

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
UPDATE "#__mail_templates"
2-
SET "params" = '"tags":["messages","message","date","extension","username"]}'
2+
SET "params" = '{"tags":["messages","message","date","extension","username"]}'
33
WHERE "template_id" = 'com_actionlogs.notification';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
UPDATE "#__mail_templates"
2+
SET "params" = '{"tags":["messages","message","date","extension","username"]}'
3+
WHERE "template_id" = 'com_actionlogs.notification'
4+
AND "params" = '"tags":["messages","message","date","extension","username"]}';

administrator/components/com_content/src/Model/ArticleModel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,12 @@ public function save($data)
762762
} elseif ($data['alias'] == $origTable->alias) {
763763
$data['alias'] = '';
764764
}
765+
766+
if (!$this->workflowEnabled) {
767+
$data['state'] = 0;
768+
} else {
769+
$data['transition'] = '';
770+
}
765771
}
766772

767773
// Automatic handling of alias for empty fields

administrator/components/com_finder/src/Indexer/Parser/Html.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public function parse($input)
7171
// Add a space before both the OPEN and CLOSE tags of BLOCK and LINE BREAKING elements,
7272
// e.g. 'all<h1><em>m</em>obile List</h1>' will become 'all mobile List'
7373
$input = preg_replace('/(<|<\/)(' .
74-
'address|article|aside|blockquote|br|canvas|dd|div|dl|dt|' .
75-
'fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|' .
76-
'main|nav|noscript|ol|output|p|pre|section|table|tfoot|ul|video' .
74+
'address|article|aside|blockquote|br|canvas|cite|code|data|details|dd|div|dl|dt|' .
75+
'fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|label|' .
76+
'main|nav|noscript|ol|option|output|p|pre|section|table|td|tfoot|th|ul|video' .
7777
')\b/i', ' $1$2', $input);
7878

7979
// Strip HTML tags.

build/build-modules-js/stylesheets/handle-scss.mjs

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,21 @@ import { dirname, sep } from 'node:path';
44
import rtlcss from 'rtlcss';
55
import { ensureDir } from 'fs-extra';
66
import { transform as transformCss, Features } from 'lightningcss';
7-
import * as Sass from 'sass-embedded';
7+
import { compileAsync } from 'sass-embedded';
8+
9+
const getOutputFile = (file) => file.replace(`${sep}scss${sep}`, `${sep}css${sep}`).replace('.scss', '.css').replace(`${sep}build${sep}media_source${sep}`, `${sep}media${sep}`);
810

911
export const handleScssFile = async (file) => {
10-
const cssFile = file
11-
.replace(`${sep}scss${sep}`, `${sep}css${sep}`)
12-
.replace(`${sep}build${sep}media_source${sep}`, `${sep}media${sep}`)
13-
.replace('.scss', '.css');
12+
let contents;
13+
const cssFile = getOutputFile(file);
1414

15-
let compiled;
1615
try {
17-
compiled = Sass.compile(file);
16+
const { css } = await compileAsync(file);
17+
contents = css.toString();
1818
} catch (error) {
19-
// eslint-disable-next-line no-console
20-
console.error(error.formatted);
21-
process.exitCode = 1;
19+
throw new Error(error.formatted);
2220
}
2321

24-
let contents = transformCss({
25-
code: Buffer.from(compiled.css.toString()),
26-
minify: false,
27-
}).code;
28-
2922
if (cssFile.endsWith('-rtl.css')) {
3023
contents = rtlcss.process(contents);
3124
}
@@ -39,15 +32,15 @@ ${contents}`,
3932
{ encoding: 'utf8', mode: 0o644 },
4033
);
4134

42-
const cssMin = transformCss({
35+
const { code: cssMin } = transformCss({
4336
code: Buffer.from(contents),
4437
minify: true,
4538
exclude: Features.VendorPrefixes,
4639
});
4740

4841
// Ensure the folder exists or create it
4942
await ensureDir(dirname(cssFile.replace('.css', '.min.css')), {});
50-
await writeFile(cssFile.replace('.css', '.min.css'), `@charset "UTF-8";${cssMin.code}`, { encoding: 'utf8', mode: 0o644 });
43+
await writeFile(cssFile.replace('.css', '.min.css'), `@charset "UTF-8";${cssMin}`, { encoding: 'utf8', mode: 0o644 });
5144

5245
// eslint-disable-next-line no-console
5346
console.log(`✅ SCSS File compiled: ${cssFile}`);

build/build-modules-js/stylesheets/scss-transform.mjs

Lines changed: 0 additions & 54 deletions
This file was deleted.

components/com_finder/src/Helper/FinderHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function logSearch(Query $searchquery, $resultCount = 0)
5454
$temp = new \stdClass();
5555
$temp->input = trim(strtolower((string) $searchquery->input));
5656
$entry = new \stdClass();
57-
$entry->searchterm = $temp->input;
57+
$entry->searchterm = mb_substr(trim($temp->input), 0, 255);
5858
$entry->query = serialize($temp);
5959
$entry->md5sum = md5($entry->query);
6060
$entry->hits = 1;

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,2 @@
1+
// This file is a placeholder for the rtl template. That means it is required and should not be deleted.
12
@import "template";
2-
3-
body {
4-
direction: rtl;
5-
}
6-
7-
// Javascript Warning
8-
#javascript-warning {
9-
font-size: 16px;
10-
text-align: center;
11-
}
12-
13-
textarea {
14-
resize: both;
15-
}
16-
17-
textarea.vert {
18-
resize: vertical;
19-
}
20-
21-
textarea.noResize {
22-
resize: none;
23-
}
24-
25-
.j-install-step {
26-
select {
27-
width: 100%;
28-
margin-right: 0 !important;
29-
}
30-
}
31-
32-
.j-install-step-header {
33-
span {
34-
margin-right: auto;
35-
margin-left: 5px;
36-
}
37-
}
38-
39-
.lang-select {
40-
left: 0;
41-
}
42-
43-
.control-group {
44-
.control-label {
45-
padding-top: 5px;
46-
padding-right: 5px;
47-
text-align: right;
48-
}
49-
}
50-
51-
.checkboxes {
52-
.checkbox input {
53-
margin-right: 0;
54-
}
55-
}
56-
57-
.form-group {
58-
text-align: right;
59-
}
60-
61-
.container-installation {
62-
text-align: right;
63-
}
64-
65-
.j-header-help {
66-
margin: 20px auto 20px 20px;
67-
}
68-
69-
.j-footer {
70-
text-align: left;
71-
}
72-
73-
.#{$jicon-css-prefix}-chevron-right::before,
74-
.#{$fa-css-prefix}-chevron-right::before {
75-
content: "";
76-
}
77-
78-
.j-install-last-step [class^="icon-"],
79-
.j-install-last-step [class*=" icon-"] {
80-
display: inline;
81-
}
82-
83-
#jform_db_prefix {
84-
text-align: right;
85-
direction: ltr;
86-
}
87-
88-
// Language Table
89-
caption {
90-
text-align: right;
91-
}

0 commit comments

Comments
 (0)