[xoops-cvslog 5880] CVS update: xoops2jp/html/modules/legacy/admin/actions

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 11月 17日 (金) 19:40:50 JST


Index: xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php
diff -u xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php:1.1.2.3 xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php:1.1.2.4
--- xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php:1.1.2.3	Mon Oct 23 18:34:46 2006
+++ xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php	Fri Nov 17 19:40:50 2006
@@ -76,6 +76,8 @@
 			}
 		}
 		
+		$this->mState->postFilter($this->mObjects, $this->mActionForm);
+		
 		return LEGACY_FRAME_VIEW_SUCCESS;
 	}
 
@@ -183,6 +185,10 @@
 	{
 	}
 	
+	function postFilter(&$objectArr, &$actionForm)
+	{
+	}
+	
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
 	}
@@ -219,6 +225,25 @@
 		return $permHandler->checkRight('module_admin', $module->get('mid'), $xoopsUser->getGroups());
 	}
 	
+	function postFilter(&$objectArr, &$actionForm)
+	{
+		$themeName = null;
+		$allowedThemes = null;
+		foreach (array_keys($objectArr) as $key) {
+			$name = $objectArr[$key]->get('conf_name');
+			if ($name == 'theme_set') {
+				$themeName = $objectArr[$key]->getConfValueForOutput();
+			}
+			elseif ($name == 'theme_set_allowed') {
+				$allowedThemes = $actionForm->get('theme_set_allowed');
+			}
+		}
+		
+		if ($name != null && $allowedThemes != null) {
+			XCube_DelegateUtils::call('Legacy.Event.ThemeSettingChanged', $themeName, $allowedThemes);
+		}
+	}
+	
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
 		$controller->executeForward("./index.php?action=PreferenceList");


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る