aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-06-07 20:17:31 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2012-06-07 20:17:31 +0200
commit2438c6e45d47ca194b51f99ddf113112fbb6ccb9 (patch)
tree27c32cdfbaa3a63877b118609b5177c705ff747a /mod/photos.php
parent7cc8c369cb6a01cffb58215966844b53794f32f4 (diff)
downloadvolse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.tar.gz
volse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.tar.bz2
volse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.zip
png support: update database.sql, fix some typos, fix tinymce image browser
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 072353587..efeab8fa3 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -682,9 +682,9 @@ function photos_post(&$a) {
$filesize = intval($_FILES['userfile']['size']);
$type = $_FILES['userfile']['type'];
}
-
+ if ($type=="") $type=guess_image_type($filename);
- logger('photos: upload: received file: ' . $filename . ' as ' . $src . ' '. $type . ' ' . $filesize . ' bytes', LOGGER_DEBUG);
+ logger('photos: upload: received file: ' . $filename . ' as ' . $src . ' ('. $type . ') ' . $filesize . ' bytes', LOGGER_DEBUG);
$maximagesize = get_config('system','maximagesize');