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:
commit
bff89a11ca
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user