[xoops-cvslog 5847] CVS update: xoops2jp/html/modules/legacy/preload

Back to archive index

Minahito minah****@users*****
2006年 11月 15日 (水) 13:18:32 JST


Index: xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php
diff -u xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php:1.1.2.3 xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php:1.1.2.4
--- xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php:1.1.2.3	Sat Oct 21 20:36:13 2006
+++ xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php	Wed Nov 15 13:18:32 2006
@@ -33,7 +33,7 @@
 	
 	function preBlockFilter()
 	{
-		$this->mController->mRoot->mDelegateManager->add("Site.CheckLogin.Success", "Legacy_ThemeSelect::callbackCheckLoginSuccess");
+		$this->mController->mRoot->mDelegateManager->add("Site.CheckLogin.Success", array(&$this, "callbackCheckLoginSuccess"));
 	}
 	
 	/**
@@ -58,7 +58,7 @@
 		// Check Theme and set it to session.
 		//
 		$userTheme = $xoopsUser->get('theme');
-		if (is_array($userTheme) && in_array($userTheme, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed'))) {
+		if (in_array($userTheme, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed'))) {
 			$_SESSION['xoopsUserTheme'] = $userTheme;
 		}
 	}


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