Minahito
minah****@users*****
2007年 3月 16日 (金) 20:20:10 JST
Index: xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php:1.1.2.5.2.3.2.1 xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php:1.1.2.5.2.3.2.2 --- xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php:1.1.2.5.2.3.2.1 Wed Feb 28 01:04:43 2007 +++ xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php Fri Mar 16 20:20:09 2007 @@ -2,7 +2,7 @@ /** * * @package Legacy - * @version $Id: function.xoops_textarea.php,v 1.1.2.5.2.3.2.1 2007/02/27 16:04:43 tom_g3x Exp $ + * @version $Id: function.xoops_textarea.php,v 1.1.2.5.2.3.2.2 2007/03/16 11:20:09 minahito Exp $ * @copyright Copyright 2005, 2006 XOOPSCube.org <http://xoopscube.org/> * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2 * @@ -56,7 +56,7 @@ $rows = isset($params['rows']) ? intval($params['rows']) : XOOPS_TEXTAREA_DEFAULT_ROWS; $value = isset($params['value']) ? $textFilter->toEdit($params['value']) : null; $id = isset($params['id']) ? trim($params['id']) : XOOPS_TEXTAREA_DEFID_PREFIX . $name; - $readonly = isset($params['readonly']) ? trim($params['readonly']) : null; + $readonly = isset($params['readonly']) ? (bool)(trim($params['readonly'])) : false; // // Build string. @@ -73,7 +73,7 @@ $string .= " id=\"$id\""; - if($readonly == 1) { + if($readonly) { $string .= " readonly=\"readonly\""; }