[pLog-svn] r5114 - plog/branches/lifetype-1.2/class/action

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Mar 16 17:29:06 EDT 2007


Author: oscar
Date: 2007-03-16 17:29:06 -0400 (Fri, 16 Mar 2007)
New Revision: 5114

Modified:
   plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
Log:
send the EVENT_POST_LOADED event a couple of lines earlier.

Modified: plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/addcommentaction.class.php	2007-03-16 21:25:43 UTC (rev 5113)
+++ plog/branches/lifetype-1.2/class/action/addcommentaction.class.php	2007-03-16 21:29:06 UTC (rev 5114)
@@ -153,6 +153,8 @@
             // the database, plus this last one
             $articles = new Articles();
             $article  = $articles->getBlogArticle( $this->_articleId, $this->_blogInfo->getId());
+			
+			$this->notifyEvent( EVENT_POST_LOADED, Array( "article" => &$article ));
 
             // check if the user wanted to receive comments for this article
             // or not...
@@ -162,8 +164,6 @@
                  $this->setCommonData();
                  return false;
             }
-			
-			$this->notifyEvent( EVENT_POST_LOADED, Array( "article" => &$article ));
 
         	// we have already checked all the data, so we are sure that everything's in place
             $comments = new ArticleComments();



More information about the pLog-svn mailing list