diff options
| author | Christian Fowler <spider@viovio.com> | 2008-04-22 03:51:10 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-04-22 03:51:10 +0000 |
| commit | 2a2e8f95bbd91feab86731f3d7658c14da1c2d8c (patch) | |
| tree | bb4d2aeb271f12a3a77df6b23dfc393b68018f70 /mailing_list.php | |
| parent | 56c4a700a363453959d7b6ebc088a68c8be3128d (diff) | |
| download | boards-2a2e8f95bbd91feab86731f3d7658c14da1c2d8c.tar.gz boards-2a2e8f95bbd91feab86731f3d7658c14da1c2d8c.tar.bz2 boards-2a2e8f95bbd91feab86731f3d7658c14da1c2d8c.zip | |
move to getter methods for configuration values of board mailing list
Diffstat (limited to 'mailing_list.php')
| -rw-r--r-- | mailing_list.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mailing_list.php b/mailing_list.php index cd00c42..35ad2f3 100644 --- a/mailing_list.php +++ b/mailing_list.php @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_boards/mailing_list.php,v 1.2 2008/04/16 21:14:51 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_boards/mailing_list.php,v 1.3 2008/04/22 03:51:10 spiderr 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. @@ -18,8 +18,7 @@ $gBitSystem->verifyPackage( 'boards' ); // Now check permissions to access this page $gContent->verifyViewPermission(); -if( $gBitSystem->getConfig('boards_sync_user') ) { - $boardSyncInbox = $gBitSystem->getConfig('boards_sync_user').'@'.$gBitSystem->getConfig('boards_sync_mail_server'); +if( $boardSyncInbox = BitBoard::getBoardSyncInbox() ) { $gBitSmarty->assign( 'boardSyncInbox', $boardSyncInbox ); } @@ -72,8 +71,8 @@ if( !empty( $_REQUEST['create_list'] ) ) { } } -if( $gContent->getPreference( 'boards_mailing_list' ) ) { - $gBitSmarty->assign( 'boardsMailingList', $gContent->getPreference( 'boards_mailing_list' ).'@'.$gBitSystem->getConfig( 'boards_email_host', $gBitSystem->getConfig( 'kernel_server_name' ) ) ); +if( $gContent->getBoardMailingList() ) { + $gBitSmarty->assign( 'boardsMailingList', $gContent->getBoardMailingList() ); if ( $gContent->hasUserPermission( 'p_boards_boards_members_view' ) ){ $members = mailman_list_members( $gContent->getPreference( 'boards_mailing_list' ) ); $gBitSmarty->assign_by_ref( 'listMembers', $members ); |
