[pLog-svn] r5115 - in plog/branches/lifetype-1.2/class: action view

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Mar 16 18:09:59 EDT 2007


Author: oscar
Date: 2007-03-16 18:09:59 -0400 (Fri, 16 Mar 2007)
New Revision: 5115

Modified:
   plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php
   plog/branches/lifetype-1.2/class/view/viewarticleview.class.php
Log:
little change


Modified: plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php	2007-03-16 21:29:06 UTC (rev 5114)
+++ plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php	2007-03-16 22:09:59 UTC (rev 5115)
@@ -263,10 +263,6 @@
 	                            $commentsPerPage );  // number of comments per page
 	        $this->_view->setValue( 'pager', $pager );
 	
-			// are comments allowed?			
-			$allowComments = ($blogSettings->getValue( "comments_enabled" ) && $article->getCommentsEnabled());
-			$this->_view->setValue( "allowComments", $allowComments );
-			
             $this->setCommonData();
 			
             // and return everything normal

Modified: plog/branches/lifetype-1.2/class/view/viewarticleview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/view/viewarticleview.class.php	2007-03-16 21:29:06 UTC (rev 5114)
+++ plog/branches/lifetype-1.2/class/view/viewarticleview.class.php	2007-03-16 22:09:59 UTC (rev 5115)
@@ -78,6 +78,11 @@
             //$this->setValue( 'comments', $article->getComments());
             $this->setValue( 'user', $article->getUser());
             $this->setValue( 'trackbacks', $article->getTrackbacks());
+
+			// are comments allowed?
+			$blogSettings = $this->_blogInfo->getSettings();
+			$allowComments = ($blogSettings->getValue( "comments_enabled" ) && $article->getCommentsEnabled());
+			$this->setValue( "allowComments", $allowComments );
             
             // render the main view
             parent::render();		



More information about the pLog-svn mailing list