Minahito
minah****@users*****
2006年 10月 15日 (日) 00:40:47 JST
Index: xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php diff -u xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php Sun Oct 15 00:40:47 2006 @@ -2,8 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/actions/ImageEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/ImageUploadForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/actions/ImageEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/ImageUploadForm.class.php"; class Legacy_ImageUploadAction extends Legacy_ImageEditAction { @@ -15,12 +15,12 @@ $controller->setDialogMode(true); $root =& $controller->mRoot; - $root->mLanguageManager->loadModuleMessageCatalog('base'); + $root->mLanguageManager->loadModuleMessageCatalog('legacy'); } function &_getHandler() { - $handler =& xoops_getmodulehandler('image', 'base'); + $handler =& xoops_getmodulehandler('image', 'legacy'); return $handler; } @@ -47,7 +47,7 @@ $groups = array(XOOPS_GROUP_ANONYMOUS); } - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $this->mCategory =& $handler->get(xoops_getrequest('imgcat_id')); if (!is_object($this->mCategory ) || (is_object($this->mCategory) && !$this->mCategory->hasUploadPerm($groups))) { return false; @@ -73,7 +73,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - redirect_header(XOOPS_URL . "/imagemanager.php", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + redirect_header(XOOPS_URL . "/imagemanager.php", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } }