[pLog-svn] r4340 - plog/trunk/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Nov 26 21:57:06 GMT 2006


Author: oscar
Date: 2006-11-26 21:57:05 +0000 (Sun, 26 Nov 2006)
New Revision: 4340

Modified:
   plog/trunk/class/dao/blogsettings.class.php
Log:
added one parameter that was not included in the reimplementation of BlogSettings::getValue()


Modified: plog/trunk/class/dao/blogsettings.class.php
===================================================================
--- plog/trunk/class/dao/blogsettings.class.php	2006-11-26 21:27:13 UTC (rev 4339)
+++ plog/trunk/class/dao/blogsettings.class.php	2006-11-26 21:57:05 UTC (rev 4340)
@@ -46,7 +46,7 @@
 			$this->setValue( "time_offset", $config->getValue( "default_time_offset", DEFAULT_TIME_OFFSET ));
 		}
 		
-		function getValue( $key )
+		function getValue( $key, $defaultValue = null )
 		{
 			// is it a plugin key?
 			if( substr( $key, 0, strlen( "plugin_" )) == "plugin_" ) {
@@ -62,7 +62,7 @@
 					$value = GlobalPluginConfig::getValue( $key );
 			}
 			else {
-				$value = parent::getValue( $key );
+				$value = parent::getValue( $key, $defaultValue );
 			}
 			
 			return( $value );



More information about the pLog-svn mailing list