[xoops-cvslog 3872] CVS update: xoops2jp/html/modules/base/preload

Back to archive index

Minahito minah****@users*****
2006年 8月 2日 (水) 18:38:44 JST


Index: xoops2jp/html/modules/base/preload/ThemeSelect.class.php
diff -u xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.5 xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.6
--- xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.5	Mon Jul 31 19:34:14 2006
+++ xoops2jp/html/modules/base/preload/ThemeSelect.class.php	Wed Aug  2 18:38:44 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: ThemeSelect.class.php,v 1.1.2.5 2006/07/31 10:34:14 minahito Exp $
+ * @version $Id: ThemeSelect.class.php,v 1.1.2.6 2006/08/02 09:38:44 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -21,6 +21,9 @@
 	
 	function Base_ThemeSelect(&$controller)
 	{
+		//
+		// TODO remove
+		//
 		parent::XCube_ActionFilter($controller);
 		$this->mIsSelectableTheme =& new XCube_NewDelegate();
 		$this->mIsSelectableTheme->register('Base_ThemeSelect.IsSelectableTheme');
@@ -51,10 +54,7 @@
 	
 	function _isSelectableTheme($theme_name)
 	{
-		$flag = false;
-		$this->mIsSelectableTheme->call(new XCube_Ref($flag), $theme_name);
-		
-		return $flag;
+		return in_array($theme_name, $this->mController->mConfig['theme_set_allowed']);
 	}
 }
 


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