Skip to content

Commit 873ac23

Browse files
committed
Merge remote-tracking branch 'upstream/5.3-dev' into 5.4-dev-upmerge-2025-03-04
2 parents 362ec5e + 2790955 commit 873ac23

File tree

52 files changed

+475
-108
lines changed

Some content is hidden

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

52 files changed

+475
-108
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
'combine_consecutive_issets' => true,
9898
// Calling unset on multiple items should be done in one call
9999
'combine_consecutive_unsets' => true,
100+
// There must be no sprintf calls with only the first argument
101+
'no_useless_sprintf' => true,
100102
]
101103
)
102104
->setFinder($finder);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function addLog($messages, $messageLanguageKey, $context, $userId = 0)
5858
try {
5959
$user = $userId ? $this->getUserFactory()->loadUserById($userId) : $this->getCurrentUser();
6060
} catch (\UnexpectedValueException $e) {
61-
@trigger_error(\sprintf('UserFactory must be set, this will not be caught anymore in 7.0.'), E_USER_DEPRECATED);
61+
@trigger_error('UserFactory must be set, this will not be caught anymore in 7.0.', E_USER_DEPRECATED);
6262
$user = Factory::getUser($userId);
6363
}
6464

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Add plg_extension_joomlaupdate plugin
2+
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) VALUES
3+
(0, 'plg_extension_joomlaupdate', 'plugin', 'joomlaupdate', 'extension', 0, 1, 1, 0, 1, '', '', '', 0, 0);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Add plg_extension_joomlaupdate module
2+
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") VALUES
3+
(0, 'plg_extension_joomlaupdate', 'plugin', 'joomlaupdate', 'extension', 0, 1, 1, 0, 1, '', '', '', 0, 0);

administrator/components/com_banners/src/Controller/BannerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function allowAdd($data = [])
7171
*/
7272
protected function allowEdit($data = [], $key = 'id')
7373
{
74-
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
74+
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
7575
$categoryId = 0;
7676

7777
if ($recordId) {

administrator/components/com_categories/src/Controller/CategoryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function allowAdd($data = [])
9191
*/
9292
protected function allowEdit($data = [], $key = 'parent_id')
9393
{
94-
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
94+
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
9595
$user = $this->app->getIdentity();
9696

9797
// Check "edit" permission on record asset (explicit or inherited)

administrator/components/com_contact/src/Controller/ContactController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function allowAdd($data = [])
6363
*/
6464
protected function allowEdit($data = [], $key = 'id')
6565
{
66-
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
66+
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
6767

6868
// Since there is no asset tracking, fallback to the component permissions.
6969
if (!$recordId) {

administrator/components/com_content/src/Controller/ArticleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function allowAdd($data = [])
159159
*/
160160
protected function allowEdit($data = [], $key = 'id')
161161
{
162-
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
162+
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
163163
$user = $this->app->getIdentity();
164164

165165
// Zero record (id:0), return component edit permission by calling parent controller method

administrator/components/com_fields/src/Controller/FieldController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function allowAdd($data = [])
9595
*/
9696
protected function allowEdit($data = [], $key = 'id')
9797
{
98-
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
98+
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
9999
$user = $this->app->getIdentity();
100100

101101
// Zero record (id:0), return component edit permission by calling parent controller method

administrator/components/com_fields/src/Controller/GroupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function allowAdd($data = [])
117117
*/
118118
protected function allowEdit($data = [], $key = 'parent_id')
119119
{
120-
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
120+
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
121121
$user = $this->app->getIdentity();
122122

123123
// Zero record (parent_id:0), return component edit permission by calling parent controller method

0 commit comments

Comments
 (0)