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

Back to archive index

Minahito minah****@users*****
2006年 10月 5日 (木) 19:18:13 JST


Index: xoops2jp/html/modules/base/preload/ThemeSelect.class.php
diff -u xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.8.2.1 xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.8.2.2
--- xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.8.2.1	Thu Sep 28 14:03:55 2006
+++ xoops2jp/html/modules/base/preload/ThemeSelect.class.php	Thu Oct  5 19:18:12 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: ThemeSelect.class.php,v 1.1.2.8.2.1 2006/09/28 05:03:55 minahito Exp $
+ * @version $Id: ThemeSelect.class.php,v 1.1.2.8.2.2 2006/10/05 10:18:12 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -58,14 +58,14 @@
 		// Check Theme and set it to session.
 		//
 		$userTheme = $xoopsUser->get('theme');
-		if (is_array($userTheme) && in_array($userTheme, $this->mController->getConfig('theme_set_allowed'))) {
+		if (is_array($userTheme) && in_array($userTheme, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed'))) {
 			$_SESSION['xoopsUserTheme'] = $userTheme;
 		}
 	}
 	
 	function _isSelectableTheme($theme_name)
 	{
-		return in_array($theme_name, $this->mController->mConfig['theme_set_allowed']);
+		return in_array($theme_name, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed'));
 	}
 }
 
Index: xoops2jp/html/modules/base/preload/IndexRedirector.class.php
diff -u xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1 xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1.2.1
--- xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1	Sat Sep  2 10:47:31 2006
+++ xoops2jp/html/modules/base/preload/IndexRedirector.class.php	Thu Oct  5 19:18:13 2006
@@ -14,7 +14,7 @@
 
 	function redirect()
 	{
-		$startPage = $this->mController->getConfig('startpage');
+		$startPage = $this->mRoot->mContext->getXoopsConfig('startpage');
 		if ($startPage != null && $startPage != "--") {
 			$handler =& xoops_gethandler('module');
 			$module =& $handler->get($startPage);


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