diff --git a/modules/autorotate/helpers/autorotate_event.php b/modules/autorotate/helpers/autorotate_event.php index f8307215..1eb14dd7 100644 --- a/modules/autorotate/helpers/autorotate_event.php +++ b/modules/autorotate/helpers/autorotate_event.php @@ -21,7 +21,7 @@ class autorotate_event_Core { // The assumption is that the exception was logged at a lower level, but we // don't want to screw up the processing that was generating the notification // so we don't pass the exception up the call stack - static function add_photos_form_completed($item, $form) { + static function item_created($item) { try { autorotate::rotate_item($item); } catch (Exception $e) { diff --git a/modules/autorotate/helpers/autorotate_installer.php b/modules/autorotate/helpers/autorotate_installer.php index 8ae94fda..42bfbee7 100644 --- a/modules/autorotate/helpers/autorotate_installer.php +++ b/modules/autorotate/helpers/autorotate_installer.php @@ -19,12 +19,12 @@ */ class autorotate_installer { static function install() { - module::set_version("autorotate", 1); + module::set_version("autorotate", 2); } static function upgrade($version) { if ($version == 1) { - module::set_version("autorotate", $version = 1); + module::set_version("autorotate", $version = 2); } }