[xoops-cvslog 4732] CVS update: xoops2jp/html/modules/base/forms

Back to archive index

Minahito minah****@users*****
2006年 10月 2日 (月) 19:48:26 JST


Index: xoops2jp/html/modules/base/forms/ImageUploadForm.class.php
diff -u xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.4 xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.5
--- xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.4	Sun Oct  1 18:47:38 2006
+++ xoops2jp/html/modules/base/forms/ImageUploadForm.class.php	Mon Oct  2 19:48:26 2006
@@ -49,7 +49,7 @@
 	 */	
 	function validateImgcat_id()
 	{
-		$imgcat_id = $this->getImgcatId();
+		$imgcat_id = $this->get('imgcat_id');
 		if ($imgcat_id != null) {
 			$root =& XCube_Root::getSingleton();
 			$xoopsUser =& $root->mController->getXoopsUser();
@@ -75,7 +75,7 @@
 		$formFile = $this->get('image_name');
 		
 		if ($formFile == null && $this->_mIsNew ) {
-			$this->addErrorMessage(_MD_BASE_ERROR_REQUIRED);
+			$this->addErrorMessage(_MD_BASE_ERROR_YOU_MUST_UPLOAD);
 		}
 	}
 	
@@ -84,7 +84,7 @@
 		parent::validate();
 		
 		$handler =& xoops_getmodulehandler('imagecategory', 'base');
-		$category =& $handler->get($this->getImgcatId());
+		$category =& $handler->get($this->get('imgcat_id'));
 		
 		$formFile = $this->get('image_name');
 
@@ -105,11 +105,6 @@
 		}
 	}
 	
-	function getImgcatId()
-	{
-		return $this->get('imgcat_id');
-	}
-
 	function load(&$obj)
 	{
 		$this->set('image_nicename', $obj->get('image_nicename'));
@@ -123,10 +118,10 @@
 	{
 		$obj->set('image_nicename', $this->get('image_nicename'));
 		$obj->set('image_display', true);
-		$obj->set('imgcat_id', $this->getImgcatId());
+		$obj->set('imgcat_id', $this->get('imgcat_id'));
 		
 		$handler =& xoops_getmodulehandler('imagecategory', 'base');
-		$category =& $handler->get($this->getImgcatId());
+		$category =& $handler->get($this->get('imgcat_id'));
 
 		$this->mFormFile = $this->get('image_name');
 		


xoops-cvslog メーリングリストの案内
Back to archive index