Skip to content

Commit 3d4a7c6

Browse files
authored
Merge pull request joomla#44797 from Bodge-IT/upmerges/2025-01-28
[6.0] Upmerges - 2025-01-28
2 parents 47bcdcd + 788bcea commit 3d4a7c6

File tree

6 files changed

+36
-34
lines changed

6 files changed

+36
-34
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"symfony/web-link": "^6.4.8",
9090
"symfony/yaml": "^6.4.11",
9191
"typo3/phar-stream-wrapper": "^3.1.7",
92-
"wamania/php-stemmer": "^3.0.1",
92+
"wamania/php-stemmer": "^4.0.0",
9393
"maximebf/debugbar": "^1.23.0",
9494
"tobscure/json-api": "dev-joomla-backports",
9595
"willdurand/negotiation": "^3.1.0",

composer.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

layouts/joomla/form/field/meter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
$attributes = [
6969
$class,
70-
!empty($width) ? ' style="width:' . $width . ';"' : '',
70+
!empty($width) ? 'style="width:' . $width . ';"' : '',
7171
$data,
7272
$dataAttribute,
7373
];

layouts/joomla/form/field/text.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
$dataAttribute,
8585
$list,
8686
strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '',
87-
$onchange ? ' onchange="' . $onchange . '"' : '',
87+
$onchange ? 'onchange="' . $onchange . '"' : '',
8888
!empty($maxLength) ? $maxLength : '',
8989
$required ? 'required' : '',
9090
!empty($autocomplete) ? 'autocomplete="' . $autocomplete . '"' : '',
91-
$autofocus ? ' autofocus' : '',
91+
$autofocus ? 'autofocus' : '',
9292
$spellcheck ? '' : 'spellcheck="false"',
9393
!empty($inputmode) ? $inputmode : '',
9494
!empty($counterlabel) ? $counterlabel : '',

layouts/joomla/form/field/url.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@
5050
*/
5151

5252
$attributes = [
53-
!empty($size) ? ' size="' . $size . '"' : '',
54-
!empty($description) ? ' aria-describedby="' . ($id ?: $name) . '-desc"' : '',
55-
$disabled ? ' disabled' : '',
56-
$readonly ? ' readonly' : '',
57-
strlen($hint) ? ' placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '',
53+
!empty($size) ? 'size="' . $size . '"' : '',
54+
!empty($description) ? 'aria-describedby="' . ($id ?: $name) . '-desc"' : '',
55+
$disabled ? 'disabled' : '',
56+
$readonly ? 'readonly' : '',
57+
strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '',
5858
!empty($autocomplete) ? 'autocomplete="' . $autocomplete . '"' : '',
59-
$autofocus ? ' autofocus' : '',
60-
$spellcheck ? '' : ' spellcheck="false"',
61-
$onchange ? ' onchange="' . $onchange . '"' : '',
59+
$autofocus ? 'autofocus' : '',
60+
$spellcheck ? '' : 'spellcheck="false"',
61+
$onchange ? 'onchange="' . $onchange . '"' : '',
6262
!empty($maxLength) ? $maxLength : '',
63-
$required ? ' required' : '',
63+
$required ? 'required' : '',
6464
$dataAttribute,
6565
];
6666

libraries/namespacemap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ protected function writeNamespaceFile($elements)
145145
$error_reporting = error_reporting(0);
146146

147147
try {
148-
File::write($this->file, implode("\n", $content));
148+
if (!File::write($this->file, implode("\n", $content))) {
149+
throw new Exception('Could not save ' . $this->file, 500);
150+
}
149151
} catch (Exception $e) {
150152
Log::add('Could not save ' . $this->file, Log::WARNING);
151153

0 commit comments

Comments
 (0)