hooks can't contain direct values, must be variables
This commit is contained in:
parent
0dfcbe9c44
commit
1ccda19f7a
1 changed files with 4 additions and 2 deletions
|
@ -562,7 +562,8 @@ foreach($_FILES AS $key => $val) {
|
||||||
if(($maximagesize) && ($filesize > $maximagesize)) {
|
if(($maximagesize) && ($filesize > $maximagesize)) {
|
||||||
notice( t('Image exceeds size limit of ') . $maximagesize . EOL);
|
notice( t('Image exceeds size limit of ') . $maximagesize . EOL);
|
||||||
@unlink($src);
|
@unlink($src);
|
||||||
call_hooks('photo_post_end',0);
|
$foo = 0;
|
||||||
|
call_hooks('photo_post_end',$foo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -575,7 +576,8 @@ foreach($_FILES AS $key => $val) {
|
||||||
logger('mod/photos.php: photos_post(): unable to process image' , 'LOGGER_DEBUG');
|
logger('mod/photos.php: photos_post(): unable to process image' , 'LOGGER_DEBUG');
|
||||||
notice( t('Unable to process image.') . EOL );
|
notice( t('Unable to process image.') . EOL );
|
||||||
@unlink($src);
|
@unlink($src);
|
||||||
call_hooks('photo_post_end',0);
|
$foo = 0;
|
||||||
|
call_hooks('photo_post_end',$foo);
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue