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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 5月 24日 (水) 22:54:37 JST


Index: xoops2jp/html/modules/base/admin/actions/HelpAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.5 xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.6
--- xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.5	Tue Apr 11 19:03:38 2006
+++ xoops2jp/html/modules/base/admin/actions/HelpAction.class.php	Wed May 24 22:54:37 2006
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: HelpAction.class.php,v 1.1.2.5 2006/04/11 10:03:38 minahito Exp $
+ * @version $Id: HelpAction.class.php,v 1.1.2.6 2006/05/24 13:54:37 minahito Exp $
  */
 
  if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -28,6 +28,7 @@
 		$this->force_compile = true;
 
 		$this->register_modifier("helpurl", "Legacy_modifier_helpurl");
+		$this->register_modifier("helpimage", "Legacy_modifier_helpimage");
 	}
 	
 	function setDirname($dirname)
@@ -60,6 +61,23 @@
 	return $url;
 }
 
+function Legacy_modifier_helpimage($file)
+{
+	$root =& XCube_Root::getSingleton();
+	$modController =& $root->mController->getModuleController();
+	$moduleObject =& $modController->getXoopsModule();
+	
+	$language = $root->mController->getConfig('language');
+	$dirname = $moduleObject->getVar('dirname');
+
+	$url = XOOPS_MODULE_URL . "/${dirname}/language/${language}/helpimages/${file}";
+	if (!file_exists($url) && $language != "english") {
+		$url = XOOPS_MODULE_URL . "/${dirname}/language/english/helpimages/${file}";
+	}
+
+	return $url;
+}
+
 /**
  * This action will show the information of a module specified to user.
  */


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