Skip to content

Commit dc38270

Browse files
authored
Merge branch '5.3-dev' into fix/vuecs
2 parents 89667cd + 72fc970 commit dc38270

File tree

69 files changed

+137
-165
lines changed

Some content is hidden

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

69 files changed

+137
-165
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function sendNotificationEmails($messages, $username, $context)
126126
$query = $db->getQuery(true);
127127

128128
$query
129-
->select($db->quoteName(['u.email', 'u.username', 'l.extensions', 'l.exclude_self']))
129+
->select($db->quoteName(['u.email', 'l.extensions']))
130130
->from($db->quoteName('#__users', 'u'))
131131
->where($db->quoteName('u.block') . ' = 0')
132132
->join(
@@ -142,10 +142,6 @@ protected function sendNotificationEmails($messages, $username, $context)
142142
$recipients = [];
143143

144144
foreach ($users as $user) {
145-
if ($user->username === $this->getCurrentUser()->username && $user->exclude_self) {
146-
continue;
147-
}
148-
149145
$extensions = json_decode($user->extensions, true);
150146

151147
if ($extensions && \in_array(strtok($context, '.'), $extensions)) {

administrator/components/com_admin/script.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,6 +2369,10 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
23692369
'/media/system/css/system-site-offline_rtl.min.css.gz',
23702370
'/media/system/scss/system-site-offline_rtl.scss',
23712371
// From 5.3.0-alpha3 to 5.3.0-beta1
2372+
'/administrator/modules/mod_feed/mod_feed.php',
2373+
'/administrator/modules/mod_privacy_status/mod_privacy_status.php',
2374+
'/libraries/vendor/guzzlehttp/promises/src/functions.php',
2375+
'/libraries/vendor/guzzlehttp/promises/src/functions_include.php',
23722376
'/libraries/vendor/maximebf/debugbar/LICENSE',
23732377
'/libraries/vendor/maximebf/debugbar/src/DebugBar/Bridge/CacheCacheCollector.php',
23742378
'/libraries/vendor/maximebf/debugbar/src/DebugBar/Bridge/DoctrineCollector.php',
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
ALTER TABLE `#__action_logs_users` ADD COLUMN `exclude_self` tinyint NOT NULL DEFAULT 0;
1+
-- --------------------------------------------------------
2+
-- The following statement which was introduced with 5.3.0-alpha3
3+
-- has been disabled as it was reverted with 5.3.0-beta1.
4+
-- See https://github.com/joomla/joomla-cms/pull/44845 for details.
5+
--
6+
-- ALTER TABLE `#__action_logs_users` ADD COLUMN `exclude_self` tinyint NOT NULL DEFAULT 0;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `#__action_logs_users` DROP COLUMN `exclude_self` /** CAN FAIL **/;
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
ALTER TABLE "#__action_logs_users" ADD COLUMN "exclude_self" integer DEFAULT 0 NOT NULL;
1+
-- --------------------------------------------------------
2+
-- The following statement which was introduced with 5.3.0-alpha3
3+
-- has been disabled as it was reverted with 5.3.0-beta1.
4+
-- See https://github.com/joomla/joomla-cms/pull/44845 for details.
5+
--
6+
-- ALTER TABLE "#__action_logs_users" ADD COLUMN "exclude_self" integer DEFAULT 0 NOT NULL;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE "#__action_logs_users" DROP COLUMN "exclude_self" /** CAN FAIL **/;

administrator/components/com_associations/src/Controller/AssociationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AssociationController extends FormController
3939
*/
4040
public function edit($key = null, $urlVar = null)
4141
{
42-
list($extensionName, $typeName) = explode('.', $this->input->get('itemtype', '', 'string'), 2);
42+
[$extensionName, $typeName] = explode('.', $this->input->get('itemtype', '', 'string'), 2);
4343

4444
$id = $this->input->get('id', 0, 'int');
4545

@@ -67,7 +67,7 @@ public function cancel($key = null)
6767
{
6868
$this->checkToken();
6969

70-
list($extensionName, $typeName) = explode('.', $this->input->get('itemtype', '', 'string'), 2);
70+
[$extensionName, $typeName] = explode('.', $this->input->get('itemtype', '', 'string'), 2);
7171

7272
// Only check in, if component item type allows to check out.
7373
if (AssociationsHelper::typeSupportsCheckout($extensionName, $typeName)) {

administrator/components/com_associations/src/Controller/AssociationsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function checkin()
9494
$this->setRedirect(Route::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false));
9595

9696
// Figure out if the item supports checking and check it in
97-
list($extensionName, $typeName) = explode('.', $this->input->get('itemtype'));
97+
[$extensionName, $typeName] = explode('.', $this->input->get('itemtype'));
9898

9999
$extension = AssociationsHelper::getSupportedExtension($extensionName);
100100
$types = $extension->get('types');

administrator/components/com_associations/src/Dispatcher/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function checkAccess()
4343
$itemType = $this->input->get('itemtype', '', 'string');
4444

4545
if ($itemType !== '') {
46-
list($extensionName, $typeName) = explode('.', $itemType);
46+
[$extensionName, $typeName] = explode('.', $itemType);
4747

4848
if (!AssociationsHelper::hasSupport($extensionName)) {
4949
throw new \Exception(

administrator/components/com_associations/src/Field/ItemlanguageField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function getOptions()
4646
{
4747
$input = Factory::getApplication()->getInput();
4848

49-
list($extensionName, $typeName) = explode('.', $input->get('itemtype', '', 'string'), 2);
49+
[$extensionName, $typeName] = explode('.', $input->get('itemtype', '', 'string'), 2);
5050

5151
// Get the extension specific helper method
5252
$helper = AssociationsHelper::getExtensionHelper($extensionName);

0 commit comments

Comments
 (0)