Permalink
Browse files

Removed pass-by-reference for PHP 5.4 compatibility

  • Loading branch information...
1 parent cba007b commit 2fd300555f9ab9ba48453758083ee76e77a47836 @jeroenrnl committed Jul 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 php/image.php
View
@@ -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);

0 comments on commit 2fd3005

Please sign in to comment.