Minahito
minah****@users*****
2006年 1月 24日 (火) 23:22:18 JST
Index: xoops2jp/html/modules/base/forms/CommentEditForm.class.php diff -u xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.1 xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.1 Tue Jan 24 20:24:24 2006 +++ xoops2jp/html/modules/base/forms/CommentEditForm.class.php Tue Jan 24 23:22:18 2006 @@ -25,7 +25,6 @@ $this->mFormProperties['com_icon'] =& new XCube_StringProperty('com_icon'); $this->mFormProperties['com_created'] =& new XCube_IntProperty('com_created'); $this->mFormProperties['com_modified'] =& new XCube_IntProperty('com_modified'); - $this->mFormProperties['com_uid'] =& new XCube_IntProperty('com_uid'); $this->mFormProperties['com_ip'] =& new XCube_StringProperty('com_ip'); $this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title'); $this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text'); @@ -66,10 +65,6 @@ $this->mFieldProperties['com_icon']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_ICON, '25'); $this->mFieldProperties['com_icon']->addVar('maxlength', 25); - $this->mFieldProperties['com_uid'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['com_uid']->setDependsByArray(array('required')); - $this->mFieldProperties['com_uid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_UID); - $this->mFieldProperties['com_ip'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_ip']->setDependsByArray(array('required','maxlength')); $this->mFieldProperties['com_ip']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_IP, '15'); @@ -103,7 +98,6 @@ $this->set('com_icon', $obj->get('com_icon')); $this->set('com_created', $obj->get('com_created')); $this->set('com_modified', $obj->get('com_modified')); - $this->set('com_uid', $obj->get('com_uid')); $this->set('com_ip', $obj->get('com_ip')); $this->set('com_title', $obj->get('com_title')); $this->set('com_text', $obj->get('com_text')); @@ -126,7 +120,15 @@ $obj->set('com_icon', $this->get('com_icon')); $obj->set('com_created', $this->get('com_created')); $obj->set('com_modified', time()); - $obj->set('com_uid', $this->get('com_uid')); + + // + // TODO check NONAME form + // $obj->set('com_uid', $this->get('com_uid')); + + // + // TODO IP will be changed when a administrator will edit or a user will + // edit again. + // $obj->set('com_ip', $_SERVER['REMOTE_ADDR']); $obj->set('com_title', $this->get('com_title')); $obj->set('com_text', $this->get('com_text'));