[pLog-svn] r1941 - plog/branches/plog-1.0.1

reto at devel.plogworld.net reto at devel.plogworld.net
Thu May 5 16:58:34 GMT 2005


Author: reto
Date: 2005-05-05 16:58:34 +0000 (Thu, 05 May 2005)
New Revision: 1941

Modified:
   plog/branches/plog-1.0.1/trackback.php
Log:
Should fix Issue http://bugs.plogworld.net/view.php?id=457 (sending notifications for trackbacks already removed by some plugins like validatetrackback

Modified: plog/branches/plog-1.0.1/trackback.php
===================================================================
--- plog/branches/plog-1.0.1/trackback.php	2005-05-05 12:50:42 UTC (rev 1940)
+++ plog/branches/plog-1.0.1/trackback.php	2005-05-05 16:58:34 UTC (rev 1941)
@@ -180,8 +180,11 @@
 
 	// notify the user that a new trackback has been received, if the article was
 	// configured to receive notifications
-	$notifier = new ArticleNotifications();
-	$notifier->notifyUsers( $article->getId(), $blogInfo);
+	// but first make sure, the trackback was not removed by some plugins like validatetrackback...
+	if( $trackbacks->getArticleTrackback( $trackback->getId() ) ) {
+		$notifier = new ArticleNotifications();
+		$notifier->notifyUsers( $article->getId(), $blogInfo);
+	}
 	
 	// clear the blog cache
 	CacheControl::resetBlogCache( $article->getBlog());




More information about the pLog-svn mailing list