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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 5月 15日 (月) 14:33:30 JST


Index: xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php
diff -u xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.3
--- xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.2	Mon May 15 14:26:50 2006
+++ xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php	Mon May 15 14:33:30 2006
@@ -80,14 +80,14 @@
 			// Imagefile width & height check.
 			//
 			if ($formFile->getWidth() > $category->get('imgcat_maxwidth') || $formFile->getHeight() > $category->get('imgcat_maxheight')) {
-				$this->addErrorMessage(_AD_BASE_ERROR_IMG_SIZE);
+				$this->addErrorMessage(XCube_Utils::formatMessage(_AD_BASE_ERROR_IMG_SIZE, $category->get('imgcat_maxwidth'), $category->get('imgcat_maxheight')));
 			}
 			
 			//
 			// Check file size
 			//
 			if ($formFile->getFilesize() > $category->get('imgcat_maxsize')) {
-				$this->addErrorMessage(_AD_BASE_ERROR_IMG_FILESIZE);
+				$this->addErrorMessage(XCube_Utils::formatMessage(_AD_BASE_ERROR_IMG_FILESIZE, $category->get('imgcat_maxsize')));
 			}
 		}
 	}


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る