From 6d351d5c4a5e67fa6dec2424df2168926b225ad5 Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Mon, 7 Jan 2013 11:00:48 +0200 Subject: [PATCH] Add as an optional 4th parameter, like in the original gallery_graphics.php. Needed for event hooks. --- helpers/MY_gallery_graphics.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/MY_gallery_graphics.php b/helpers/MY_gallery_graphics.php index 7d6f7d62..6ece32aa 100644 --- a/helpers/MY_gallery_graphics.php +++ b/helpers/MY_gallery_graphics.php @@ -25,10 +25,10 @@ class gallery_graphics extends gallery_graphics_Core { * @param string $output_file * @param array $options */ - static function rotate($input_file, $output_file, $options) { + static function rotate($input_file, $output_file, $options, $item=null) { graphics::init_toolkit(); - module::event("graphics_rotate", $input_file, $output_file, $options); + module::event("graphics_rotate", $input_file, $output_file, $options, $item); // Convert degrees for jpegtran specific format $jt_degrees = $options["degrees"]; @@ -46,6 +46,6 @@ class gallery_graphics extends gallery_graphics_Core { ->save($output_file); } - module::event("graphics_rotate_completed", $input_file, $output_file, $options); + module::event("graphics_rotate_completed", $input_file, $output_file, $options, $item); } }