Minahito
minah****@users*****
2007年 1月 17日 (水) 19:15:20 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.8 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.8 Sun Dec 10 22:34:48 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php Wed Jan 17 19:15:20 2007 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_BlockProcedure.class.php,v 1.1.2.8 2006/12/10 13:34:48 nobunobu Exp $ + * @version $Id: Legacy_BlockProcedure.class.php,v 1.1.2.9 2007/01/17 10:15:20 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) die(); @@ -279,6 +279,23 @@ } } + // + // The block may have options, even it doesn't have end_func + // + if ($this->_mBlock->get('options')) { + $root =& XCube_Root::getSingleton(); + $textFilter =& $root->getTextFilter(); + + $buf = ""; + $options = explode('|', $this->_mBlock->get('options')); + foreach ($options as $val) { + $val = $textFilter->ToEdit($val); + $buf .= "<input type='hidden' name='options[]' value='${val}'/>"; + } + + return $buf; + } + return null; } }