[pLog-svn] r3835 - plog/trunk/class/action

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Aug 3 06:43:18 GMT 2006


Author: oscar
Date: 2006-08-03 06:43:16 +0000 (Thu, 03 Aug 2006)
New Revision: 3835

Modified:
   plog/trunk/class/action/addtrackbackaction.class.php
Log:
the config key trackback_server_enabled that controls whether trackbacks are enabled or not was being ignored


Modified: plog/trunk/class/action/addtrackbackaction.class.php
===================================================================
--- plog/trunk/class/action/addtrackbackaction.class.php	2006-08-02 14:55:29 UTC (rev 3834)
+++ plog/trunk/class/action/addtrackbackaction.class.php	2006-08-03 06:43:16 UTC (rev 3835)
@@ -48,6 +48,14 @@
 		
 		function perform()
         {
+	        // check if we should be receiving trackbacks at all
+	        $config =& Config::getConfig();
+	        if( !$config->getValue( "trackback_server_enabled", false )) {
+                $this->tblog( "ERROR: Trackbacks are not enabled in this site" );
+                $this->_view = new TrackbackView( "Trackbacks are not enabled in this site", true );
+                return( false );		        
+	        }
+	        
             // for security, we will strip _ANY_ html tag from the tags
             $tf = new TextFilter();
             $blogName  = $tf->filterAllHTML( $this->_request->getValue( "blog_name" ));



More information about the pLog-svn mailing list