diff --git a/docs/NEWS b/docs/NEWS
index e2fe0df3..2b635446 100644
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
Version 1.3 ()
------------------------------------------------------------------------
+ * Allow the "send mail" plugin to send mails to all registered
+ authors (garvinhicking)
+
* Add spartacus remote management versioning information subpage.
(garvinhicking)
diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php
index 838bbfb2..28274aea 100644
--- a/include/plugin_internal.inc.php
+++ b/include/plugin_internal.inc.php
@@ -382,7 +382,7 @@ class serendipity_quicksearch_plugin extends serendipity_plugin {
-
+
diff --git a/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php b/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php
index 8b286887..78a09af9 100644
--- a/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php
+++ b/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php
@@ -14,3 +14,4 @@
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.');
@define('PLUGIN_EVENT_MAILER_SENDING', 'Versende');
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden');
+ @define('PLUGIN_EVENT_MAILER_SENDTOALL', 'An alle Redakteure schicken');
diff --git a/plugins/serendipity_event_mailer/lang_de.inc.php b/plugins/serendipity_event_mailer/lang_de.inc.php
index 55cce37c..9e342596 100644
--- a/plugins/serendipity_event_mailer/lang_de.inc.php
+++ b/plugins/serendipity_event_mailer/lang_de.inc.php
@@ -14,3 +14,4 @@
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.');
@define('PLUGIN_EVENT_MAILER_SENDING', 'Versende');
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden');
+ @define('PLUGIN_EVENT_MAILER_SENDTOALL', 'An alle Redakteure schicken');
diff --git a/plugins/serendipity_event_mailer/lang_en.inc.php b/plugins/serendipity_event_mailer/lang_en.inc.php
index 11e5ff7f..f1fcced5 100644
--- a/plugins/serendipity_event_mailer/lang_en.inc.php
+++ b/plugins/serendipity_event_mailer/lang_en.inc.php
@@ -20,6 +20,4 @@
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'This entry was not sent via E-Mail because you decided to not send it.');
@define('PLUGIN_EVENT_MAILER_SENDING', 'Sending');
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Send this entry via E-Mail');
-
-
-?>
+@define('PLUGIN_EVENT_MAILER_SENDTOALL', 'Send to all authors');
diff --git a/plugins/serendipity_event_mailer/serendipity_event_mailer.php b/plugins/serendipity_event_mailer/serendipity_event_mailer.php
index 08e09835..aafa5f4e 100644
--- a/plugins/serendipity_event_mailer/serendipity_event_mailer.php
+++ b/plugins/serendipity_event_mailer/serendipity_event_mailer.php
@@ -26,7 +26,7 @@ class serendipity_event_mailer extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_MAILER_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Sebastian Nohn, Kristian Koehntopp, Garvin Hicking');
- $propbag->add('version', '1.47');
+ $propbag->add('version', '1.50');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -38,7 +38,7 @@ class serendipity_event_mailer extends serendipity_event
));
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
- $config = array('what', 'mailto', 'includelink', 'striptags', 'convertp');
+ $config = array('what', 'mailto', 'sendtoall', 'includelink', 'striptags', 'convertp');
$propbag->add('configuration', $config);
}
@@ -99,6 +99,13 @@ class serendipity_event_mailer extends serendipity_event
$propbag->add('default', '');
break;
+ case 'sendtoall':
+ $propbag->add('type', 'boolean');
+ $propbag->add('name', PLUGIN_EVENT_MAILER_SENDTOALL);
+ $propbag->add('description', '');
+ $propbag->add('default', 'false');
+ break;
+
case 'includelink':
$propbag->add('type', 'boolean');
$propbag->add('name', PLUGIN_EVENT_MAILER_LINK);
@@ -144,6 +151,12 @@ class serendipity_event_mailer extends serendipity_event
} else {
$mailto = $this->get_config('mailto');
}
+
+ if (isset($serendipity['POST']['properties']['sendentry_all'])) {
+ $sendtoall = $serendipity['POST']['properties']['sendentry_all'];
+ } else {
+ $sendtoall = serendipity_db_bool($this->get_config('sendtoall'));
+ }
?>
$eventData['title'],