[pLog-svn] r5242 - plugins/branches/lifetype-1.2/closecomments/class/security

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Mar 31 09:09:44 EDT 2007


Author: oscar
Date: 2007-03-31 09:09:44 -0400 (Sat, 31 Mar 2007)
New Revision: 5242

Modified:
   plugins/branches/lifetype-1.2/closecomments/class/security/closecomments.class.php
Log:
Fixed issue http://bugs.lifetype.net/view.php?id=1254 -- the filter that implements the close comments functionality was not checking whether the plugin was enabled or not.

Modified: plugins/branches/lifetype-1.2/closecomments/class/security/closecomments.class.php
===================================================================
--- plugins/branches/lifetype-1.2/closecomments/class/security/closecomments.class.php	2007-03-31 12:55:15 UTC (rev 5241)
+++ plugins/branches/lifetype-1.2/closecomments/class/security/closecomments.class.php	2007-03-31 13:09:44 UTC (rev 5242)
@@ -22,6 +22,12 @@
             $request  = $this->_pipelineRequest->getHttpRequest();
             $blogInfo = $this->_pipelineRequest->getBlogInfo();
 
+			$settings = $blogInfo->getSettings();
+			if( !$settings->getValue( "plugin_closecomments_enabled", false )) {
+				// do nothing if the plugin is disabled
+				return( new PipelineResult());
+			}
+
             if( $request->getValue( "op" ) != "AddComment" && $request->getValue( "op" ) != "ViewArticle" ) {
             	$result = new PipelineResult();
                 return $result;



More information about the pLog-svn mailing list