Minahito
minah****@users*****
2007年 1月 18日 (木) 14:05:32 JST
Index: xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.9 xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.10 --- xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.9 Wed Jan 17 19:15:20 2007 +++ xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php Thu Jan 18 14:05:31 2007 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_BlockProcedure.class.php,v 1.1.2.9 2007/01/17 10:15:20 minahito Exp $ + * @version $Id: Legacy_BlockProcedure.class.php,v 1.1.2.10 2007/01/18 05:05:31 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) die(); @@ -207,6 +207,16 @@ } /** + * @public + * @breaf [Secret Agreement] Gets a value indicating whether the option form of this block needs the row to display the form. + * @remark Only block management actions should use this method, and this method should not be overrided usually. + */ + function _hasVisibleOptionForm() + { + return true; + } + + /** * Gets rendered HTML buffer for the option form of the control panel. * @return string */ @@ -256,6 +266,11 @@ return $this->_mDisplayFlag; } + function _hasVisibleOptionForm() + { + return ($this->_mBlock->get('func_file') && $this->_mBlock->get('edit_func')); + } + function getOptionForm() { if ($this->_mBlock->get('func_file') && $this->_mBlock->get('edit_func')) {