[xoops-cvslog 11] CVS update: xoops2jp/html/class

アーカイブの一覧に戻る

onokazu onoka****@users*****
2005年 5月 27日 (金) 23:06:29 JST


Index: xoops2jp/html/class/uploader.php
diff -u xoops2jp/html/class/uploader.php:1.2.6.3 xoops2jp/html/class/uploader.php:1.2.6.4
--- xoops2jp/html/class/uploader.php:1.2.6.3	Fri Apr 22 13:35:29 2005
+++ xoops2jp/html/class/uploader.php	Fri May 27 23:06:29 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: uploader.php,v 1.2.6.3 2005/04/22 04:35:29 onokazu Exp $
+// $Id: uploader.php,v 1.2.6.4 2005/05/27 14:06:29 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -284,7 +284,7 @@
         if (!$this->checkMaxHeight()) {
             $this->setErrors(sprintf('File height must be smaller than %u', $this->maxHeight));
         }
-        if (!$this->checkFileType()) {
+        if (!$this->checkMimeType()) {
             $this->setErrors("Invalid file type");
         }
         if (count($this->errors) > 0) {
@@ -377,7 +377,7 @@
      *
      * @return  bool
      **/
-    function checkFileType()
+    function checkMimeType()
     {
         if (!empty($this->allowedExtensions)) {
             if (!in_array($this->ext, $this->allowedExtensions)) {


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