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

Back to archive index

Minahito minah****@users*****
2006年 10月 15日 (日) 00:43:44 JST


Index: xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php
diff -u xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.2
--- xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.1	Sat Oct 14 23:55:21 2006
+++ xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php	Sun Oct 15 00:43:44 2006
@@ -2,7 +2,7 @@
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
-require_once XOOPS_MODULE_PATH . "/base/forms/SearchResultsForm.class.php";
+require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchResultsForm.class.php";
 
 define('LEGACY_SEARCH_RESULT_MAXHIT', 5);
 define('LEGACY_SEARCH_SHOWALL_MAXHIT', 20);
@@ -19,7 +19,7 @@
 	{
 		$root =& $controller->mRoot;
 		$root->mLanguageManager->loadPageTypeMessageCatalog('search');
-		$root->mLanguageManager->loadModuleMessageCatalog('base');
+		$root->mLanguageManager->loadModuleMessageCatalog('legacy');
 		
 		$handler =& xoops_gethandler('config');
 		$this->mConfig =& $handler->getConfigsByCat(XOOPS_CONF_SEARCH);
@@ -36,7 +36,7 @@
 	function hasPermission(&$controller, &$xoopsUser)
 	{
 		if ($this->mConfig['enable_search'] != 1) {
-			$controller->executeRedirect(XOOPS_URL . '/', 3, _MD_BASE_ERROR_SEARCH_NOT_ENABLED);
+			$controller->executeRedirect(XOOPS_URL . '/', 3, _MD_LEGACY_ERROR_SEARCH_NOT_ENABLED);
 			return false;
 		}
 		return true;


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