[xoops-cvslog 5291] CVS update: xoops2jp/html/modules/legacy/preload/Primary

Back to archive index

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


Index: xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php
diff -u xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php:1.1.2.1 xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php:1.1.2.2
--- xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php:1.1.2.1	Sat Oct 14 23:55:29 2006
+++ xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php	Sun Oct 15 01:44:14 2006
@@ -52,7 +52,7 @@
 			if (in_array(XOOPS_GROUP_ADMIN, $context->mXoopsUser->getGroups())) {
 				$GLOBALS['xoopsUser'] = $context->mXoopsUser;
 				if (!empty($_POST['cube_module_install'])) { //@todo use Ticket
-					require_once XOOPS_BASE_PATH . "/admin/class/ModuleInstaller.class.php";
+					require_once XOOPS_LEGACY_PATH . "/admin/class/ModuleInstaller.class.php";
 					if (isset($_POST['uninstalled_modules']) && is_array($_POST['uninstalled_modules'])){
 						foreach ($_POST['uninstalled_modules'] as $module) {
 							$module = basename($module);
@@ -75,7 +75,7 @@
 						}
 					}
 					if (isset($_POST['option_modules']) && is_array($_POST['option_modules']) ){
-						$handler =& xoops_getmodulehandler('non_installation_module', 'base');
+						$handler =& xoops_getmodulehandler('non_installation_module', 'legacy');
 						$objects = $handler->getObjects();
 						$optionModules = array();
 						foreach ($objects as $module) {
@@ -104,11 +104,11 @@
 								   ));
 					///< @todo filebase template with absolute file path
 					$xoopsTpl->compile_check = true;
-					$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/base/templates/legacy_uninstall_modules.html');
+					$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/legacy/templates/legacy_uninstall_modules.html');
 					exit();
 				}
 				elseif (!empty($_POST['cube_module_uninstallok'])) { //@todo use Ticket
-					require_once XOOPS_BASE_PATH . "/admin/class/ModuleUninstaller.class.php";
+					require_once XOOPS_LEGACY_PATH . "/admin/class/ModuleUninstaller.class.php";
 					$module = basename($_POST['cube_module_uninstallok']);
 					if (in_array($module, $retArray['disabled'])) {
 						$uninstaller =& new Legacy_ModuleUninstaller($module);
@@ -117,7 +117,7 @@
 					$controller->executeRedirect(XOOPS_URL . '/',1);
 				}
 				else {
-					$handler =& xoops_getmodulehandler('non_installation_module','base');
+					$handler =& xoops_getmodulehandler('non_installation_module','legacy');
 					$objects = $handler->getObjects();
 					$optionModules = array();
 					foreach ($objects as $module) {
@@ -146,7 +146,7 @@
 								   ));
 					///< @todo filebase template with absolute file path
 					$xoopsTpl->compile_check = true;
-					$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/base/templates/legacy_install_modules.html');
+					$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/legacy/templates/legacy_install_modules.html');
 					exit();
 				}
 		   } else {
@@ -169,7 +169,7 @@
 			$xoopsTpl->compile_check = true;
 			
 			// @todo filebase template with absolute file path
-			$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/base/templates/legacy_site_closed.html');
+			$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/legacy/templates/legacy_site_closed.html');
 			exit();
 		}
 	}


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