summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/mail_queue.php5
-rw-r--r--admin/send.php4
2 files changed, 6 insertions, 3 deletions
diff --git a/admin/mail_queue.php b/admin/mail_queue.php
index b16228e..50da2b6 100644
--- a/admin/mail_queue.php
+++ b/admin/mail_queue.php
@@ -14,7 +14,10 @@ if( !empty( $_REQUEST['batch_command'] ) && !empty( $_REQUEST['queue_id'] ) ) {
foreach( $_REQUEST['queue_id'] as $qId ) {
$gBitMailer->expungeQueueRow( $qId );
}
- } elseif( $_REQUEST['batch_command'] == 'send' ) {
+ } elseif( $_REQUEST['batch_command'] == 'send' && !empty( $_REQUEST['queue_id'] ) ) {
+ foreach( $_REQUEST['queue_id'] as $queueId ) {
+ $gBitMailer->sendQueue( $queueId );
+ }
}
}
diff --git a/admin/send.php b/admin/send.php
index 6e07d6f..f1a1232 100644
--- a/admin/send.php
+++ b/admin/send.php
@@ -1,6 +1,6 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/send.php,v 1.14 2006/06/19 02:35:19 spiderr Exp $
+// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/send.php,v 1.15 2007/04/25 20:59:12 spiderr Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -66,7 +66,7 @@ if( $gContent->isValid() ) {
$gBitSmarty->assign_by_ref( 'feedback', $feedback );
// Display the template
-$gBitSystem->display( 'bitpackage:newsletters/send_newsletters.tpl' , "Send Newsletters");
+$gBitSystem->display( 'bitpackage:newsletters/send_newsletters.tpl' , tra( "Send Newsletter" ).': '.$gContent->getTitle() );
?>