Minahito
minah****@users*****
2006年 7月 10日 (月) 16:24:22 JST
Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.2 Tue Apr 25 12:58:58 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php Mon Jul 10 16:24:22 2006 @@ -1,15 +1,23 @@ <?php +/** + * @package legacyRender + * @version $Id: BannerAdminEditForm.class.php,v 1.1.2.3 2006/07/10 07:24:22 minahito Exp $ + */ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php"; require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +/** + * [ToDo] + * This form doesn't validate the format of URL. Isn't OK? + */ class LegacyRender_BannerAdminEditForm extends XCube_ActionForm { function getTokenName() { - return "module.legacyRender.BannerAdminEditForm.TOKEN"; + return "module.legacyRender.BannerAdminEditForm.TOKEN" . $this->get('bid'); } function prepare() @@ -28,7 +36,6 @@ // // Set field properties // - $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); $this->mFieldProperties['bid']->setDependsByArray(array('required')); $this->mFieldProperties['bid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_BID);