summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/helpers/gallery_graphics.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/gallery/helpers/gallery_graphics.php b/modules/gallery/helpers/gallery_graphics.php
index 1f47a65c..716bad18 100644
--- a/modules/gallery/helpers/gallery_graphics.php
+++ b/modules/gallery/helpers/gallery_graphics.php
@@ -24,8 +24,9 @@ class gallery_graphics_Core {
* @param string $input_file
* @param string $output_file
* @param array $options
+ * @param Item_Model $item (optional)
*/
- static function rotate($input_file, $output_file, $options, $item) {
+ static function rotate($input_file, $output_file, $options, $item=null) {
graphics::init_toolkit();
module::event("graphics_rotate", $input_file, $output_file, $options, $item);
@@ -45,8 +46,9 @@ class gallery_graphics_Core {
* @param string $input_file
* @param string $output_file
* @param array $options
+ * @param Item_Model $item (optional)
*/
- static function resize($input_file, $output_file, $options, $item) {
+ static function resize($input_file, $output_file, $options, $item=null) {
graphics::init_toolkit();
module::event("graphics_resize", $input_file, $output_file, $options, $item);
@@ -86,8 +88,9 @@ class gallery_graphics_Core {
* @param string $input_file
* @param string $output_file
* @param array $options
+ * @param Item_Model $item (optional)
*/
- static function composite($input_file, $output_file, $options, $item) {
+ static function composite($input_file, $output_file, $options, $item=null) {
try {
graphics::init_toolkit();