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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 5月 30日 (火) 12:54:54 JST


Index: xoops2jp/html/modules/base/actions/ImageListAction.class.php
diff -u xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.1 xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.2
--- xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.1	Thu May 25 18:28:50 2006
+++ xoops2jp/html/modules/base/actions/ImageListAction.class.php	Tue May 30 12:54:54 2006
@@ -13,11 +13,14 @@
 	function prepare(&$controller, &$xoopsUser)
 	{
 		$controller->setDialogMode(true);
+		
+		$root =& $controller->mRoot;
+		$root->mLanguageManager->loadModuleLanguage('base');
 	}
 	
 	function &_getHandler()
 	{
-		$handler =& xoops_getmodulehandler('image');
+		$handler =& xoops_getmodulehandler('image', 'base');
 		return $handler;
 	}
 
@@ -29,7 +32,7 @@
 
 	function _getBaseUrl()
 	{
-		return "./index.php?action=ImageList";
+		return XOOPS_URL . "/imagemanager.php?op=list";
 	}
 	
 	function getDefaultView(&$contoller, &$xoopsUser)
@@ -37,7 +40,7 @@
 		$result = parent::getDefaultView($controller, $xoopsUser);
 		if ($result == LEGACY_FRAME_VIEW_INDEX) {
 			$this->mImgcatId = xoops_getrequest('imgcat_id');
-			$handler =& xoops_getmodulehandler('imagecategory');
+			$handler =& xoops_getmodulehandler('imagecategory', 'base');
 			$this->mCategory =& $handler->get($this->mImgcatId );
 		}
 		
@@ -57,7 +60,7 @@
 		
 		$render->setAttribute('imgcatId', $this->mImgcatId);
 		
-		$handler =& xoops_getmodulehandler('imagecategory');
+		$handler =& xoops_getmodulehandler('imagecategory', 'base');
 		
 		if (is_object($xoopsUser)) {
 			$groups =& $xoopsUser->getGroups();
Index: xoops2jp/html/modules/base/actions/ImageUploadAction.class.php
diff -u xoops2jp/html/modules/base/actions/ImageUploadAction.class.php:1.1.2.1 xoops2jp/html/modules/base/actions/ImageUploadAction.class.php:1.1.2.2
--- xoops2jp/html/modules/base/actions/ImageUploadAction.class.php:1.1.2.1	Thu May 25 18:28:50 2006
+++ xoops2jp/html/modules/base/actions/ImageUploadAction.class.php	Tue May 30 12:54:54 2006
@@ -13,11 +13,14 @@
 	{
 		parent::prepare($controller, $xoopsUser);
 		$controller->setDialogMode(true);
+		
+		$root =& $controller->mRoot;
+		$root->mLanguageManager->loadModuleLanguage('base');
 	}
 	
 	function &_getHandler()
 	{
-		$handler =& xoops_getmodulehandler('image');
+		$handler =& xoops_getmodulehandler('image', 'base');
 		return $handler;
 	}
 
@@ -44,7 +47,7 @@
 			$groups = array(XOOPS_GROUP_ANONYMOUS);
 		}
 			
-		$handler =& xoops_getmodulehandler('imagecategory');
+		$handler =& xoops_getmodulehandler('imagecategory', 'base');
 		$this->mCategory =& $handler->get(xoops_getrequest('imgcat_id'));
 		if (!is_object($this->mCategory ) || (is_object($this->mCategory) && !$this->mCategory->hasUploadPerm($groups))) {
 			return false;
@@ -65,12 +68,12 @@
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
-		$controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id') . "&target=" . xoops_getrequest('target'));
+		$controller->executeForward(XOOPS_URL . "/imagemanager.php?imgcat_id=" . $this->mActionForm->get('imgcat_id') . "&target=" . xoops_getrequest('target'));
 	}
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=ImageList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED);
+		redirect_header(XOOPS_URL . "/imagemanager.php", 1, _MD_BASE_ERROR_DBUPDATE_FAILED);
 	}
 }
 


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