diff options
author | Friendika <info@friendika.com> | 2011-05-21 17:17:27 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-21 17:17:27 -0700 |
commit | 1ccda19f7a0baae1d738891f9b73ff97242cbdff (patch) | |
tree | 25703f0437c2dafd1e66ac9b66dfe1014d6f1eb0 | |
parent | 0dfcbe9c44f38c717f8a4ff2516153ce9240306f (diff) | |
download | volse-hubzilla-1ccda19f7a0baae1d738891f9b73ff97242cbdff.tar.gz volse-hubzilla-1ccda19f7a0baae1d738891f9b73ff97242cbdff.tar.bz2 volse-hubzilla-1ccda19f7a0baae1d738891f9b73ff97242cbdff.zip |
hooks can't contain direct values, must be variables
-rw-r--r-- | mod/photos.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php index 17dbf00b6..89fef2ee8 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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(); } |