Skip to content

Commit

Permalink
Removed pass-by-reference for PHP 5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenrnl committed Jul 18, 2012
1 parent cba007b commit 2fd3005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
if (WATERMARKING && $watermark_file && !$type) {
$image_path .= $name;
$image=imagecreatefromjpeg($image_path);
watermark_image(&$image, $watermark_file, WM_POSX, WM_POSY, WM_TRANS);
watermark_image($image, $watermark_file, WM_POSX, WM_POSY, WM_TRANS);
header("Content-type: image/jpeg");
imagejpeg($image);
imagedestroy($image);
Expand Down

0 comments on commit 2fd3005

Please sign in to comment.