diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-01 01:55:23 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-01 01:55:23 +0100 |
commit | 2d855c222a2b6ce90714be9e62ffc52632ebe488 (patch) | |
tree | 7bdbc02225ae9c2c5b6648d09cac07c87ee628be | |
parent | ebffb8ee2d1b8bcf72c6baa743b447007a6c7169 (diff) | |
download | istreamdev-2d855c222a2b6ce90714be9e62ffc52632ebe488.tar.gz istreamdev-2d855c222a2b6ce90714be9e62ffc52632ebe488.tar.bz2 |
Fixed some file detection
-rwxr-xr-x | includes/inc_files.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/inc_files.php b/includes/inc_files.php index c6374d8..60bc4f2 100755 --- a/includes/inc_files.php +++ b/includes/inc_files.php @@ -93,7 +93,9 @@ function mediagettype($file) if (is_dir($file)) return 3; - if (preg_match("/" .$fileext ." /", $videotypes)) + else if (preg_match("$/$", $fileext)) + return 0; + else if (preg_match("/" .$fileext ." /", $videotypes)) return 1; else if (preg_match("/" .$fileext ." /", $audiotypes)) return 2; |