Skip to content

Commit b0d8353

Browse files
authored
[5.4] Send Automated Update Notifications to all super users (joomla#45685)
Removing email input field
1 parent 046985e commit b0d8353

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

administrator/components/com_joomlaupdate/config.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,5 @@
121121
class="alert alert-info w-100"
122122
showon="updatesource!:default[OR]minimum_stability!:4"
123123
/>
124-
<field
125-
name="automated_updates_email"
126-
type="text"
127-
label="COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_LABEL"
128-
description="COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_DESCRIPTION"
129-
showon="updatesource:default[AND]minimum_stability:4[AND]autoupdate:1"
130-
/>
131124
</fieldset>
132125
</config>

administrator/components/com_joomlaupdate/src/Model/NotificationModel.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,8 @@ public function sendNotification($type, $oldVersion): void
4848
{
4949
$params = ComponentHelper::getParams('com_joomlaupdate');
5050

51-
// Load the parameters.
52-
$specificEmail = $params->get('automated_updates_email');
53-
54-
// Let's find out the email addresses to notify
55-
$superUsers = [];
56-
57-
if (!empty($specificEmail)) {
58-
$superUsers = $this->getSuperUsers($specificEmail);
59-
}
60-
61-
if (empty($superUsers)) {
62-
$superUsers = $this->getSuperUsers();
63-
}
51+
// Send a notification to all super users
52+
$superUsers = $this->getSuperUsers();
6453

6554
if (empty($superUsers)) {
6655
throw new \RuntimeException();

administrator/language/en-GB/com_joomlaupdate.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ COM_JOOMLAUPDATE_CONFIG_AUTOMATED_UPDATES_DISABLED_LABEL="<span class=\"fa-fw me
1616
COM_JOOMLAUPDATE_CONFIG_AUTOMATED_UPDATES_LABEL="Automated Updates"
1717
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_DESC="Automatically update Joomla to the latest version when it is available."
1818
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_LABEL="Automated Update"
19-
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_DESCRIPTION="A comma separated list of the email addresses which will receive the update notification emails. The addresses in the list MUST belong to existing users of your site who have the Super User privilege. If none of the listed emails belongs to Super Users, or if it's left blank, all Super Users of this site will receive the update notification email."
20-
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_LABEL="Super User Emails"
2119
COM_JOOMLAUPDATE_CONFIG_BACKUPCHECK_DESC="Shows the checkbox to confirm you have taken a backup and you're ready to update in the final step before the update is actually applied."
2220
COM_JOOMLAUPDATE_CONFIG_BACKUPCHECK_LABEL="Confirm Backup Checkbox"
2321
COM_JOOMLAUPDATE_CONFIG_CUSTOMURL_LABEL="Custom URL"

0 commit comments

Comments
 (0)