Minahito
minah****@users*****
2006年 1月 27日 (金) 18:27:37 JST
Index: xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php diff -u xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.8 xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.9 --- xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.8 Wed Jan 11 12:32:08 2006 +++ xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php Fri Jan 27 18:27:37 2006 @@ -1,5 +1,5 @@ <?php -// $Id: Legacy_AdminModuleController.class.php,v 1.1.2.8 2006/01/11 03:32:08 minahito Exp $ +// $Id: Legacy_AdminModuleController.class.php,v 1.1.2.9 2006/01/27 09:27:37 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPSCube - PHP Content Management System // // Copyright (c) 2005 XOOPSCube.org // @@ -167,6 +167,15 @@ return XOOPS_ROOT_PATH."/modules/".$this->mModuleObject->getVar('dirname')."/admin"; } + /** + * Return module's directory name. This function is dependent on the design + * of Legacy. + */ + function getDirname() + { + return is_object($this->mModuleObject) ? $this->mModuleObject->get('dirname') : null; + } + function &getXoopsModule() { return $this->mModuleObject;