diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-08-26 21:37:50 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-08-26 21:37:50 +0000 |
| commit | c550427eade2172e75f68e5f85057949094004cb (patch) | |
| tree | 4089299af1b98846c1523aebec4fecf576f5de56 | |
| parent | be6cc43bca459e6703ae8d2bdac58d957a00d4f9 (diff) | |
| download | boards-c550427eade2172e75f68e5f85057949094004cb.tar.gz boards-c550427eade2172e75f68e5f85057949094004cb.tar.bz2 boards-c550427eade2172e75f68e5f85057949094004cb.zip | |
reactivate board notifications
| -rw-r--r-- | BitBoard.php | 8 | ||||
| -rw-r--r-- | BitBoardTopic.php | 13 |
2 files changed, 11 insertions, 10 deletions
diff --git a/BitBoard.php b/BitBoard.php index 6cd5f3e..ed7ec08 100644 --- a/BitBoard.php +++ b/BitBoard.php @@ -1,13 +1,13 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_boards/BitBoard.php,v 1.62 2009/08/26 21:34:11 tylerbello Exp $ - * $Id: BitBoard.php,v 1.62 2009/08/26 21:34:11 tylerbello Exp $ + * $Header: /cvsroot/bitweaver/_bit_boards/BitBoard.php,v 1.63 2009/08/26 21:37:50 tylerbello Exp $ + * $Id: BitBoard.php,v 1.63 2009/08/26 21:37:50 tylerbello Exp $ * * BitBoard class to illustrate best practices when creating a new bitweaver package that * builds on core bitweaver functionality, such as the Liberty CMS engine * * @author spider <spider@steelsun.com> - * @version $Revision: 1.62 $ $Date: 2009/08/26 21:34:11 $ $Author: tylerbello $ + * @version $Revision: 1.63 $ $Date: 2009/08/26 21:37:50 $ $Author: tylerbello $ * @package boards */ @@ -832,7 +832,7 @@ function boards_comment_store( &$pObject, &$pParamHash ) { global $gBitSystem; // board posts ( e.g. liberty comments ) service // @TODO check that root object is a board -- otherwise all comments get fired - // @TODO probably should migrate sendMotification to Switchboard + // @TODO probably should migrate sendNotification to Switchboard if( $gBitSystem->isPackageActive( 'boards' ) && $pObject->isContentType( BITCOMMENT_CONTENT_TYPE_GUID ) && $gBitSystem->isFeatureActive( 'boards_thread_notification' )) { if( isset( $pObject->mInfo['thread_forward_sequence'] ) ){ diff --git a/BitBoardTopic.php b/BitBoardTopic.php index 260ae68..66f3acc 100644 --- a/BitBoardTopic.php +++ b/BitBoardTopic.php @@ -1,13 +1,13 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_boards/BitBoardTopic.php,v 1.66 2009/06/25 18:09:15 tylerbello Exp $ - * $Id: BitBoardTopic.php,v 1.66 2009/06/25 18:09:15 tylerbello Exp $ + * $Header: /cvsroot/bitweaver/_bit_boards/BitBoardTopic.php,v 1.67 2009/08/26 21:37:50 tylerbello Exp $ + * $Id: BitBoardTopic.php,v 1.67 2009/08/26 21:37:50 tylerbello Exp $ * * Messageboards class to illustrate best practices when creating a new bitweaver package that * builds on core bitweaver functionality, such as the Liberty CMS engine * * @author spider <spider@steelsun.com> - * @version $Revision: 1.66 $ $Date: 2009/06/25 18:09:15 $ $Author: tylerbello $ + * @version $Revision: 1.67 $ $Date: 2009/08/26 21:37:50 $ $Author: tylerbello $ * @package boards */ @@ -566,12 +566,13 @@ class BitBoardTopic extends LibertyMime { $ret['topic']->load(); return $ret; } + return array(); } function sendNotification($user) { global $gBitSystem; - return; + //return; $mail_subject= "Topic Reply Notification - ".$this->mInfo['title']; $host = 'http://'.$_SERVER['HTTP_HOST']; //TODO: use a template for this @@ -586,8 +587,8 @@ class BitBoardTopic extends LibertyMime { If you no longer wish to watch this topic you can either click the \"Stop watching this topic link\" found at the topic of the topic above, or by clicking the following link after logging on: ".$host.$this->getDisplayUrl()."¬ify=1"; - - @mail($user['email'], $mail_subject , $mail_message, "From: ".$gBitSystem->getConfig( 'site_sender_email' )."\r\nContent-type: text/plain;charset=utf-8\r\n"); + + @mail($user['email'], $mail_subject , $mail_message, "From: ".$gBitSystem->getConfig( 'site_sender_email' )."\r\nContent-type: text/plain;charset=utf-8\r\n"); $data = array( 'notify_date'=>time(), |
