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

Back to archive index

Minahito minah****@users*****
2006年 7月 11日 (火) 12:05:43 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.2
--- xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.1	Thu May 18 12:04:07 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php	Tue Jul 11 12:05:43 2006
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @package legacyRender
+ * @version $Id: TplsetDownloadAction.class.php,v 1.1.2.2 2006/07/11 03:05:43 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
@@ -55,9 +59,9 @@
 
 		$xml = "<?xml version=\"1.0\"?>" . "\n" .
 		       "<tplset>" . "\n" .
-		       "  <name>" . $this->mTplset->getVar('tplset_name') . "</name>" . "\n" .
-		       "  <dateCreated>" . $this->mTplset->getVar('tplset_created') . "</dateCreated>" . "\n" .
-		       "  <credits>" . $this->mTplset->getVar('tplset_credits') . "</credits>" . "\n" .
+		       "  <name>" . $this->mTplset->getShow('tplset_name') . "</name>" . "\n" .
+		       "  <dateCreated>" . $this->mTplset->getShow('tplset_created') . "</dateCreated>" . "\n" .
+		       "  <credits>" . $this->mTplset->getShow('tplset_credits') . "</credits>" . "\n" .
 			   "  <generator>" . XOOPS_VERSION. "</generator>" . "\n";
 
 		$handler =& xoops_getmodulehandler('tplfile');
@@ -72,20 +76,20 @@
 				if ($files[$i]->Source != null) {
 					$type = null;
 					if ($files[$i]->get('tpl_type') == 'block') {
-						$path = $this->mTplset->getVar('tplset_name') . '/templates/' . $files[$i]->getVar('tpl_module') . "/blocks/" . $files[$i]->getVar('tpl_file');
+						$path = $this->mTplset->getShow('tplset_name') . '/templates/' . $files[$i]->getShow('tpl_module') . "/blocks/" . $files[$i]->getShow('tpl_file');
 						$type = "block";
 					}
 					elseif ($files[$i]->get('tpl_type') == 'module') {
-						$path = $this->mTplset->getVar('tplset_name') . '/templates/' . $files[$i]->getVar('tpl_module') . "/" . $files[$i]->getVar('tpl_file');
+						$path = $this->mTplset->getShow('tplset_name') . '/templates/' . $files[$i]->getShow('tpl_module') . "/" . $files[$i]->getShow('tpl_file');
 						$type = "module";
 					}
-					$xml .= '    <template name="' . $files[$i]->getVar('tpl_file') . '">' . "\n" .
-					        "      <module>" . $files[$i]->getVar('tpl_module') . "</module>" . "\n" .
-					        "      <type>module</type>" . $files[$i]->getVar('tpl_module') . "</module>" . "\n" .
-					        "      <lastModified>" . $files[$i]->getVar('tpl_lastmodified') . "</lastModified>" . "\n" .
+					$xml .= '    <template name="' . $files[$i]->getShow('tpl_file') . '">' . "\n" .
+					        "      <module>" . $files[$i]->getShow('tpl_module') . "</module>" . "\n" .
+					        "      <type>module</type>" . $files[$i]->getShow('tpl_module') . "</module>" . "\n" .
+					        "      <lastModified>" . $files[$i]->getShow('tpl_lastmodified') . "</lastModified>" . "\n" .
 					        "    </template>" . "\n";
 					
-					$this->mDownloader->addFileData($files[$i]->Source->get('tpl_source'), $path, $files[$i]->getVar('tpl_lastmodified'));
+					$this->mDownloader->addFileData($files[$i]->Source->get('tpl_source'), $path, $files[$i]->getShow('tpl_lastmodified'));
 				}
 			}
 			
@@ -94,20 +98,20 @@
 		
 		$xml .= "</tplset>";
 		
-		$this->mDownloader->addFileData($xml, $this->mTplset->getVar('tplset_name') . '/tplset.xml', time());
+		$this->mDownloader->addFileData($xml, $this->mTplset->getShow('tplset_name') . '/tplset.xml', time());
 		
 		return LEGACYRENDER_FRAME_VIEW_SUCCESS;
 	}
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
-		print $this->mDownloader->download($this->mTplset->getVar('tplset_name'), true);
+		print $this->mDownloader->download($this->mTplset->getShow('tplset_name'), true);
 		exit(0);
 	}
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+		$controller->executeRedirect("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
 	}
 }
 


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