// postupload hook if needed
try {
Horde::callHook('postupload', array($image_ids));
- } catch (Horde_Exception $e) {
- // Error from within the hook.
} catch (Horde_Exception_HookNotSet $e) {}
$notification->push(sprintf(ngettext("%d photo was uploaded.", "%d photos were uploaded.", $uploaded), $uploaded), 'horde.success');
} elseif ($vars->get('submitbutton') != _("Cancel")) {
// Call the postupload hook if needed
if (!empty($GLOBALS['conf']['hooks']['postupload']) && !$skiphook) {
- Horde::callHook('_ansel_hook_postupload', array(array($image_id)), 'ansel');
+ try {
+ Horde::callHook('postupload', array($image_id));
+ } catch (Horde_Exception_HookNotSet $e) {}
}
return array('image_id' => (int)$image_id,