[pLog-svn] r2526 - plugins/trunk/moblog/class/security

mark at devel.plogworld.net mark at devel.plogworld.net
Fri Sep 30 03:53:03 GMT 2005


Author: mark
Date: 2005-09-30 03:52:30 +0000 (Fri, 30 Sep 2005)
New Revision: 2526

Modified:
   plugins/trunk/moblog/class/security/moblogbatchfilter.class.php
Log:
Fixed bug http://bugs.plogworld.net/view.php?id=715

Mark

Modified: plugins/trunk/moblog/class/security/moblogbatchfilter.class.php
===================================================================
--- plugins/trunk/moblog/class/security/moblogbatchfilter.class.php	2005-09-25 20:29:21 UTC (rev 2525)
+++ plugins/trunk/moblog/class/security/moblogbatchfilter.class.php	2005-09-30 03:52:30 UTC (rev 2526)
@@ -30,12 +30,21 @@
             $blogInfo = $this->_pipelineRequest->getBlogInfo();
             $config =& Config::getConfig();
 
+            // check if this moblog batch has been enabled or disabled by siteowner
             $pseudoBatch = $config->getValue('plugin_moblog_pseudobatch');
             if( $pseudoBatch == "Off" || $pseudoBatch == "" ) {
             	$result = new PipelineResult();
                 return $result;
             }
 
+        	// check if this moblog plugin has been enabled or disabled by blog owner
+            $blogSettings = $blogInfo->getSettings();
+		    $pluginEnabled = $blogSettings->getValue( "plugin_moblog_enabled" );
+            if( !$pluginEnabled) {
+            	$result = new PipelineResult();
+                return $result;
+            }            
+
             $lastUpdate = $config->getValue('plugin_moblog_lastupdate');
             $timeDiff = time() - $lastUpdate;
             if( $timeDiff <= $pseudoBatch*60 ) {




More information about the pLog-svn mailing list