From c550427eade2172e75f68e5f85057949094004cb Mon Sep 17 00:00:00 2001 From: Tyler Bello Date: Wed, 26 Aug 2009 21:37:50 +0000 Subject: reactivate board notifications --- BitBoard.php | 8 ++++---- 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 @@ - * @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 @@ - * @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(), -- cgit v1.3