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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Mar 18 14:18:12 EDT 2007


Author: oscar
Date: 2007-03-18 14:18:12 -0400 (Sun, 18 Mar 2007)
New Revision: 5129

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminupdatepluginsettingsaction.class.php
Log:
Allow plugins to define that certain keys can take empty values, useful if we don't want to report unnecessary errors when updating the global plugin settings.

Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatepluginsettingsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatepluginsettingsaction.class.php	2007-03-18 18:16:40 UTC (rev 5128)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatepluginsettingsaction.class.php	2007-03-18 18:18:12 UTC (rev 5129)
@@ -50,7 +50,8 @@
 			foreach( $this->pm->getPlugins() as $plugin ) {
 				foreach( $plugin->getPluginConfigurationKeys() as $key ) {
 					isset( $key["validator"] ) ? $validator = $key["validator"] : $validator = new EmptyValidator();
-					$this->registerFieldValidator( $key["name"], $validator );
+					isset( $key["allowEmpty"] ) ? $allowEmpty = $key["allowEmpty"] : $allowEmpty = false;
+					$this->registerFieldValidator( $key["name"], $validator, $allowEmpty );
 				}
 			}
 			



More information about the pLog-svn mailing list