summaryrefslogtreecommitdiff
path: root/mailing_list.php
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2008-11-27 17:19:14 +0000
committerNick Palmer <nick@sluggardy.net>2008-11-27 17:19:14 +0000
commitd79a7991bd242e140f5a5cd79d0926f6b266dced (patch)
tree42beaeb66f899eaed12feb2fcb5709cfc1bde2ec /mailing_list.php
parent6dce32fd3d26eb9dfb1b4dd9d2674cc3c4554e42 (diff)
downloadboards-d79a7991bd242e140f5a5cd79d0926f6b266dced.tar.gz
boards-d79a7991bd242e140f5a5cd79d0926f6b266dced.tar.bz2
boards-d79a7991bd242e140f5a5cd79d0926f6b266dced.zip
Fixup two way sync so that mailman and bw are in sync as far as moderation.
Diffstat (limited to 'mailing_list.php')
-rw-r--r--mailing_list.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/mailing_list.php b/mailing_list.php
index 56abb47..1d44ec1 100644
--- a/mailing_list.php
+++ b/mailing_list.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_boards/mailing_list.php,v 1.7 2008/10/03 17:43:07 nickpalmer Exp $
+ * $Header: /cvsroot/bitweaver/_bit_boards/mailing_list.php,v 1.8 2008/11/27 17:19:14 nickpalmer Exp $
* Copyright (c) bitweaver Group
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
@@ -74,9 +74,10 @@ if( !empty( $_REQUEST['create_list'] ) ) {
} elseif( $gContent->getPreference( 'boards_mailing_list' ) ) {
// check for submits that need boards_mailing_list
if( !empty( $_REQUEST['subscribe_boardsync'] ) ) {
- if( $gContent->getPreference('board_sync_list_address') ) {
- mailman_addmember( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox );
- }
+ if( $gContent->getPreference('board_sync_list_address') ) {
+ mailman_addmember( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox );
+ mailman_setmoderator( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox );
+ }
} elseif( !empty( $_REQUEST['unsubscribe_boardsync'] ) ) {
if( $gContent->getPreference('board_sync_list_address') ) {
mailman_remove_member( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox );