Minahito
minah****@users*****
2007年 1月 18日 (木) 14:05:11 JST
Index: xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php:1.1.2.5 xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php:1.1.2.6 --- xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php:1.1.2.5 Wed Jan 17 19:14:46 2007 +++ xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php Thu Jan 18 14:05:11 2007 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: BlockEditAction.class.php,v 1.1.2.5 2007/01/17 10:14:46 minahito Exp $ + * @version $Id: BlockEditAction.class.php,v 1.1.2.6 2007/01/18 05:05:11 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -196,8 +196,21 @@ // Get html of option form rendered. // $this->_mOptionForm = $this->_getOptionForm(); + $render->setAttribute('hasVisibleOptionForm', $this->_hasVisibleOptionForm()); $render->setAttribute('optionForm', $this->_mOptionForm); } + + /** + * @private + * Gets a value indicating whether the option form needs the row in the table to display its form. + * @remark This method is requred for the compatibility with XOOPS2. + * @return bool + */ + function _hasVisibleOptionForm() + { + $block =& Legacy_Utils::createBlockProcedure($this->mObject); + return $block->_hasVisibleOptionForm(); + } /** * Gets rendered HTML buffer of the block optional edit form.