[xoops-cvslog 6268] CVS update: xoops2jp/html/core

Back to archive index

Minahito minah****@users*****
2007年 3月 28日 (水) 16:03:34 JST


Index: xoops2jp/html/core/XCube_Root.class.php
diff -u xoops2jp/html/core/XCube_Root.class.php:1.1.2.7.2.2 xoops2jp/html/core/XCube_Root.class.php:1.1.2.7.2.3
--- xoops2jp/html/core/XCube_Root.class.php:1.1.2.7.2.2	Wed Mar 28 15:33:55 2007
+++ xoops2jp/html/core/XCube_Root.class.php	Wed Mar 28 16:03:34 2007
@@ -2,7 +2,7 @@
 /**
  *
  * @package XCube
- * @version $Id: XCube_Root.class.php,v 1.1.2.7.2.2 2007/03/28 06:33:55 minahito Exp $
+ * @version $Id: XCube_Root.class.php,v 1.1.2.7.2.3 2007/03/28 07:03:34 minahito Exp $
  * @copyright Copyright 2005, 2006 XOOPS Cube Project <http://xoopscube.org/>
  * @license http://xoopscube.sourceforge.net/bsd_licenses.txt Modified BSD license
  *
@@ -377,7 +377,13 @@
 				$root = $this->mSiteConfig['Cube']['Root'];
 			}
 			
-			require_once $root . $classPath . "/" . $className . ".class.php";
+			if (is_file($root . $classPath)) {
+				// [secret trick] ... Normally, $classPath has to point a directory.
+				require_once $root . $classPath;
+			}
+			else {
+				require_once $root . $classPath . "/" . $className . ".class.php";
+			}
 		}
 		
 		if (class_exists($className)) {


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