NobuNobu
nobun****@users*****
2006年 3月 26日 (日) 15:08:12 JST
Index: xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php diff -u xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.3 xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.4 --- xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.3 Thu Jan 5 17:29:53 2006 +++ xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php Sun Mar 26 15:08:12 2006 @@ -1,5 +1,5 @@ <?php -// $Id: ThemeSelect.class.php,v 1.1.2.3 2006/01/05 08:29:53 minahito Exp $ +// $Id: ThemeSelect.class.php,v 1.1.2.4 2006/03/26 06:08:12 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -29,11 +29,11 @@ { function preBlockFilter() { - if (!empty($_POST['xoops_theme_select']) && in_array($_POST['xoops_theme_select'], $this->mController->mXoopsConfig['theme_set_allowed'])) { - $this->mController->mXoopsConfig['theme_set'] = $_POST['xoops_theme_select']; + if (!empty($_POST['xoops_theme_select']) && in_array($_POST['xoops_theme_select'], $this->mController->mConfig['theme_set_allowed'])) { + $this->mController->mConfig['theme_set'] = $_POST['xoops_theme_select']; $_SESSION['xoopsUserTheme'] = $_POST['xoops_theme_select']; - } elseif (!empty($_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $this->mController->mXoopsConfig['theme_set_allowed'])) { - $this->mController->mXoopsConfig['theme_set'] = $_SESSION['xoopsUserTheme']; + } elseif (!empty($_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $this->mController->mConfig['theme_set_allowed'])) { + $this->mController->mConfig['theme_set'] = $_SESSION['xoopsUserTheme']; } $delegate=new XCube_Delegate("ThemeSelect_Filter","callbackCheckLoginSuccess");