]> git.mxchange.org Git - friendica.git/commitdiff
photo upload plugin size limit is not working, call photo_end hooks in any error...
authorFriendika <info@friendika.com>
Fri, 20 May 2011 22:57:58 +0000 (15:57 -0700)
committerFriendika <info@friendika.com>
Fri, 20 May 2011 22:57:58 +0000 (15:57 -0700)
mod/photos.php

index a2efda43853f29414e91b4196565ac721fd02656..17dbf00b6a001b80b3465d52d7236171da1d1f10 100644 (file)
@@ -562,6 +562,7 @@ foreach($_FILES AS $key => $val) {
        if(($maximagesize) && ($filesize > $maximagesize)) {
                notice( t('Image exceeds size limit of ') . $maximagesize . EOL);
                @unlink($src);
+               call_hooks('photo_post_end',0);
                return;
        }
 
@@ -574,6 +575,7 @@ foreach($_FILES AS $key => $val) {
                logger('mod/photos.php: photos_post(): unable to process image' , 'LOGGER_DEBUG');
                notice( t('Unable to process image.') . EOL );
                @unlink($src);
+               call_hooks('photo_post_end',0);
                killme();
        }