[pLog-svn] r2095 - plog/branches/plog-1.1-ben/class/dao

ork at devel.plogworld.net ork at devel.plogworld.net
Sun May 29 16:00:20 GMT 2005


Author: ork
Date: 2005-05-29 16:00:20 +0000 (Sun, 29 May 2005)
New Revision: 2095

Modified:
   plog/branches/plog-1.1-ben/class/dao/articlenotifications.class.php
Log:
reorganized includes, phpmailer shouldn't be loaded anymore if not neccessary


Modified: plog/branches/plog-1.1-ben/class/dao/articlenotifications.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/articlenotifications.class.php	2005-05-29 15:59:42 UTC (rev 2094)
+++ plog/branches/plog-1.1-ben/class/dao/articlenotifications.class.php	2005-05-29 16:00:20 UTC (rev 2095)
@@ -2,9 +2,6 @@
 
 	include_once( PLOG_CLASS_PATH."class/dao/model.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/articlenotification.class.php" );
-    include_once( PLOG_CLASS_PATH."class/mail/emailmessage.class.php" );
-    include_once( PLOG_CLASS_PATH."class/mail/emailservice.class.php" );
-    include_once( PLOG_CLASS_PATH."class/dao/users.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
 	include_once( PLOG_CLASS_PATH."class/template/templateservice.class.php" );
 
@@ -79,7 +76,10 @@
           */
          function notifyUser( $notification, $userInfo, $subject, $body )
          {
-         	//print( "sending notification to ".$userInfo->getEmail()."<br/>");
+            include_once( PLOG_CLASS_PATH."class/mail/emailservice.class.php" );
+            include_once( PLOG_CLASS_PATH."class/mail/emailmessage.class.php" );
+
+            // $this->log->info( "sending notification to ".$userInfo->getEmail());
             $message = new EmailMessage();
             $message->setFrom( $this->_config->getValue( "post_notification_source_address" ));
             $message->addTo( $userInfo->getEmail());
@@ -98,6 +98,8 @@
           */
          function notifyUsers( $postId, $blogInfo, $message = null)
          {
+            include_once( PLOG_CLASS_PATH."class/dao/users.class.php" );
+
          	$blogId = $blogInfo->getId();
          	$artNotifs = $this->getArticleNotifications( $postId, $blogId );
 




More information about the pLog-svn mailing list