[pLog-svn] r6564 - plog/branches/lifetype-1.2/class/action/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Jun 18 02:18:08 EDT 2008


Author: mark
Date: 2008-06-18 02:18:07 -0400 (Wed, 18 Jun 2008)
New Revision: 6564

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminplugincenteraction.class.php
Log:
TextFilter::checkboxToBoolean is only valid when we use value="1" or value="on" in checkbox input.

So, we can use TextFilter::checkboxToBoolean() here.

Modified: plog/branches/lifetype-1.2/class/action/admin/adminplugincenteraction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminplugincenteraction.class.php	2008-06-18 05:07:16 UTC (rev 6563)
+++ plog/branches/lifetype-1.2/class/action/admin/adminplugincenteraction.class.php	2008-06-18 06:18:07 UTC (rev 6564)
@@ -42,8 +42,8 @@
         	// initialize the plugin manager and load the plugins
         	$pluginManager =& PluginManager::getPluginManager();
 
-                // TODO: we have a checkbox-to-boolean validator/getter, maybe use that instead?
-			$doVersionCheck = $this->_request->getValue( "doVersionCheck", false ) ? true : false;
+            lt_include( PLOG_CLASS_PATH."class/data/textfilter.class.php");
+			$doVersionCheck = TextFilter::checkboxToBoolean( $this->_request->getValue( "doVersionCheck" ) );
 
             // check if the plugin manager is enabled or not, since if it's not
             // there is no point in this feature...



More information about the pLog-svn mailing list