[xoops-cvslog 3195] CVS update: xoops2jp/html/modules/legacyRender/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 5月 27日 (土) 22:10:07 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.10 xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.11
--- xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.10	Wed May 17 20:15:51 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php	Sat May 27 22:10:07 2006
@@ -63,6 +63,8 @@
 
 	function execute(&$controller, &$xoopsUser)
 	{
+		require_once XOOPS_ROOT_PATH . "/class/template.php";
+		
 		$this->mActionForm->fetch();
 		$this->mActionForm->validate();
 		
@@ -112,6 +114,10 @@
 			
 			$successFlag &= $handler->insert($obj);
 			
+			$xoopsTpl =& new XoopsTpl();
+			$xoopsTpl->clear_cache('db:' . $obj->get('tpl_file'));
+			$xoopsTpl->clear_compiled_tpl('db:' . $obj->get('tpl_file'));
+		
 			unset($obj);
 			unset($formFile);
 		}
Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileEditAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileEditAction.class.php:1.1.2.7 xoops2jp/html/modules/legacyRender/admin/actions/TplfileEditAction.class.php:1.1.2.8
--- xoops2jp/html/modules/legacyRender/admin/actions/TplfileEditAction.class.php:1.1.2.7	Wed May 17 18:43:27 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileEditAction.class.php	Sat May 27 22:10:07 2006
@@ -47,6 +47,12 @@
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
+		require_once XOOPS_ROOT_PATH . "/class/template.php";
+		
+		$xoopsTpl =& new XoopsTpl();
+		$xoopsTpl->clear_cache('db:' . $this->mObject->get('tpl_file'));
+		$xoopsTpl->clear_compiled_tpl('db:' . $this->mObject->get('tpl_file'));
+
 		$tplset = $this->mObject->get('tpl_tplset');
 		$module = $this->mObject->get('tpl_module');
 		$controller->executeForward("./index.php?action=TplfileList&tpl_tplset=${tplset}&tpl_module=${module}");
Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php:1.1.2.4
--- xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php:1.1.2.3	Wed May 17 18:43:27 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php	Sat May 27 22:10:07 2006
@@ -42,6 +42,12 @@
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
+		require_once XOOPS_ROOT_PATH . "/class/template.php";
+		
+		$xoopsTpl =& new XoopsTpl();
+		$xoopsTpl->clear_cache('db:' . $this->mObject->get('tpl_file'));
+		$xoopsTpl->clear_compiled_tpl('db:' . $this->mObject->get('tpl_file'));
+		
 		$tplset = $this->mObject->get('tpl_tplset');
 		$module = $this->mObject->get('tpl_module');
 		$controller->executeForward("./index.php?action=TplfileList&tpl_tplset=${tplset}&tpl_module=${module}");


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