[pLog-svn] r5854 - in plugins/branches/lifetype-1.2/recentcomments: . class/view

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Aug 22 08:53:58 EDT 2007


Author: jondaley
Date: 2007-08-22 08:53:58 -0400 (Wed, 22 Aug 2007)
New Revision: 5854

Modified:
   plugins/branches/lifetype-1.2/recentcomments/class/view/pluginrecentcommentsconfigview.class.php
   plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php
Log:
default values to old behavior, for people who are upgrading to this version

Modified: plugins/branches/lifetype-1.2/recentcomments/class/view/pluginrecentcommentsconfigview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/recentcomments/class/view/pluginrecentcommentsconfigview.class.php	2007-08-22 12:22:04 UTC (rev 5853)
+++ plugins/branches/lifetype-1.2/recentcomments/class/view/pluginrecentcommentsconfigview.class.php	2007-08-22 12:53:58 UTC (rev 5854)
@@ -19,8 +19,8 @@
 			$blogSettings = $this->_blogInfo->getSettings();
 			$pluginEnabled = $blogSettings->getValue( "plugin_recentcomments_enabled" );
 			$maxComments = $blogSettings->getValue( "plugin_recentcomments_maxcomments" );
-			$includeComments = $blogSettings->getValue( "plugin_recentcomments_include_comments" );
-			$includeTrackbacks = $blogSettings->getValue( "plugin_recentcomments_include_trackbacks" );
+			$includeComments = $blogSettings->getValue( "plugin_recentcomments_include_comments", 1);
+			$includeTrackbacks = $blogSettings->getValue( "plugin_recentcomments_include_trackbacks", 0);
 			if ($maxComments == "") $maxComments = DEFAULT_ITEMS_PER_PAGE;
 			
 			// create a view and export the settings to the template

Modified: plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php
===================================================================
--- plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php	2007-08-22 12:22:04 UTC (rev 5853)
+++ plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php	2007-08-22 12:53:58 UTC (rev 5854)
@@ -47,8 +47,8 @@
 		    $blogSettings = $this->blogInfo->getSettings();
 		    $this->pluginEnabled = $blogSettings->getValue( "plugin_recentcomments_enabled" );
 	        $this->maxComments = $blogSettings->getValue( "plugin_recentcomments_maxcomments", DEFAULT_ITEMS_PER_PAGE );
-		    $this->includeComments = $blogSettings->getValue( "plugin_recentcomments_include_comments" );
-		    $this->includeTrackbacks = $blogSettings->getValue( "plugin_recentcomments_include_trackbacks" );
+		    $this->includeComments = $blogSettings->getValue( "plugin_recentcomments_include_comments", 1);
+		    $this->includeTrackbacks = $blogSettings->getValue( "plugin_recentcomments_include_trackbacks", 0);
 	    }
 	    
 	    function isEnabled()



More information about the pLog-svn mailing list