[xoops-cvslog 1495] CVS update: xoops2jp/html/modules/base/admin/actions

Back to archive index

Minahito minah****@users*****
2005年 12月 29日 (木) 16:24:01 JST


Index: xoops2jp/html/modules/base/admin/actions/LegacyHelpAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/LegacyHelpAction.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/actions/LegacyHelpAction.class.php:1.1.2.3
--- xoops2jp/html/modules/base/admin/actions/LegacyHelpAction.class.php:1.1.2.2	Thu Dec 29 00:47:49 2005
+++ xoops2jp/html/modules/base/admin/actions/LegacyHelpAction.class.php	Thu Dec 29 16:24:01 2005
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: LegacyHelpAction.class.php,v 1.1.2.2 2005/12/28 15:47:49 minahito Exp $
+ * @version $Id: LegacyHelpAction.class.php,v 1.1.2.3 2005/12/29 07:24:01 minahito Exp $
  */
 
 /**
@@ -23,7 +23,7 @@
 		$this->left_delimiter = "<{";
 		$this->right_delimiter = "}>";
 
-//		$this->register_modifier("helpurl", "Legacy_modifier_helpurl");
+		$this->register_modifier("helpurl", "Legacy_modifier_helpurl");
 	}
 	
 	function _get_auto_filename($autoBase, $autoSource = null, $auotId = null)
@@ -33,6 +33,23 @@
 	}
 }
 
+function Legacy_modifier_helpurl($file)
+{
+	$root =& XCube_Root::getSingleton();
+	$modController =& $root->mController->getModuleController();
+	$moduleObject =& $modController->getXoopsModule();
+	
+	$language = $root->mController->getConfig('language');
+	$dirname = $moduleObject->getVar('dirname');
+
+	//
+	// TODO We should check file_exists.
+	//
+
+	$url = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&amp;dirname=${dirname}&amp;file=${file}";
+
+	return $url;
+}
 
 /**
  * This action will show the information of a module specified to user.
@@ -63,7 +80,10 @@
 		
 		$language =& $controller->getConfig('language');
 
-		$helpfile = $this->mModuleObject->getHelp();
+		//
+		// TODO We must change the following lines to ActionForm.
+		//
+		$helpfile = isset($_GET['file']) ? $_GET['file'] : $this->mModuleObject->getHelp();
 
 		//
 		// Smarty


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