Index: branches/5.1.x/core/units/forms/forms_tp.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/forms/forms_tp.php (.../forms_tp.php) (revision 12127) +++ branches/5.1.x/core/units/forms/forms_tp.php (.../forms_tp.php) (revision 12657) @@ -1,6 +1,6 @@ SelectParam($params, 'name,field'); - $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params); + class FormsTagProcessor extends kDBTagProcessor{ - $value = $object->GetDBField($field); + function CheckBox($params) + { + $field = $this->SelectParam($params, 'name,field'); + $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params); - if ($value) return 'checked'; - if (is_null($value)) return $params['default']; + $value = $object->GetDBField($field); - return ''; - } + if ($value) return 'checked'; + if (is_null($value)) return $params['default']; - function MaxUploadSize($params) - { - return round(MAX_UPLOAD_SIZE/1024/1024).' Mb'; - } + return ''; + } -} - -?> \ No newline at end of file + function MaxUploadSize($params) + { + return round(MAX_UPLOAD_SIZE/1024/1024).' Mb'; + } + } \ No newline at end of file