]> git.mxchange.org Git - friendica.git/commitdiff
hooks can't contain direct values, must be variables
authorFriendika <info@friendika.com>
Sun, 22 May 2011 00:17:27 +0000 (17:17 -0700)
committerFriendika <info@friendika.com>
Sun, 22 May 2011 00:17:27 +0000 (17:17 -0700)
mod/photos.php

index 17dbf00b6a001b80b3465d52d7236171da1d1f10..89fef2ee8652f26d432c9867c9c14743de1daf0b 100644 (file)
@@ -562,7 +562,8 @@ 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);
+               $foo = 0;
+               call_hooks('photo_post_end',$foo);
                return;
        }
 
@@ -575,7 +576,8 @@ 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);
+               $foo = 0;
+               call_hooks('photo_post_end',$foo);
                killme();
        }