1
0

Merge pull request #1 from mikeage/master

Add $item as an optional 4th parameter

Thanks a lot mikeage ! Sorry I must have missed the pull notification as I moved that repo to :
  https://github.com/letic/gallery3-contrib/tree/master/3.0/modules/jpegtran
for easier integration with upstream
This commit is contained in:
Anthony Callegaro 2013-05-12 22:13:48 +02:00
commit bff89a11ca

View File

@ -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);
}
}