[xoops-cvslog 2361] CVS update: xoops2jp/html/kernel

Back to archive index

NobuNobu nobun****@users*****
2006年 2月 28日 (火) 23:29:09 JST


Index: xoops2jp/html/kernel/XCube_Root.class.php
diff -u xoops2jp/html/kernel/XCube_Root.class.php:1.1.2.10 xoops2jp/html/kernel/XCube_Root.class.php:1.1.2.11
--- xoops2jp/html/kernel/XCube_Root.class.php:1.1.2.10	Tue Jan 24 23:21:32 2006
+++ xoops2jp/html/kernel/XCube_Root.class.php	Tue Feb 28 23:29:09 2006
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: XCube_Root.class.php,v 1.1.2.10 2006/01/24 14:21:32 minahito Exp $
+ * @version $Id: XCube_Root.class.php,v 1.1.2.11 2006/02/28 14:29:09 nobunobu Exp $
  * @package Cube
  */
 
@@ -150,6 +150,14 @@
 			if(isset($this->mSiteConfig[func_get_arg(0)][func_get_arg(1)]))
 				return $this->mSiteConfig[func_get_arg(0)][func_get_arg(1)];
 		}
+		elseif(func_num_args()==3) {
+			if(isset($this->mSiteConfig[func_get_arg(0)][func_get_arg(1)])) {
+				return $this->mSiteConfig[func_get_arg(0)][func_get_arg(1)];
+			}
+			else {
+				return func_get_arg(2); //return 3rd param as a default value;
+			}
+		}
 
 		return null;
 	}


xoops-cvslog メーリングリストの案内
Back to archive index