From 05308a94b11fb6f51b7b0338ea67793da0d46501 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 23 Feb 2009 05:59:13 +0000 Subject: Use IMAGETYPE_xxx to filter file types --- modules/local_import/controllers/local_import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/local_import/controllers') diff --git a/modules/local_import/controllers/local_import.php b/modules/local_import/controllers/local_import.php index 3367bf7d..7302aae5 100644 --- a/modules/local_import/controllers/local_import.php +++ b/modules/local_import/controllers/local_import.php @@ -92,7 +92,7 @@ class Local_Import_Controller extends Controller { $extension = strtolower(substr(strrchr($file, '.'), 1)); // Make sure the file is readable if (is_readable($full_path) && - in_array($extension, array("gif", "jpg", "jpeg", "png", "flv"))) { + in_array($extension, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, "flv"))) { $file_list[$file] = array("path" => $full_path); } } -- cgit v1.2.3