From ead10e2243141a225508f9df8b6f9961b39935a6 Mon Sep 17 00:00:00 2001 From: Thomas de Jesus Date: Thu, 19 Jul 2018 10:19:25 -0500 Subject: [PATCH] Update Admin.php pulls in the captcha js for the suggest event. --- mod/calendar/class/Admin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/calendar/class/Admin.php b/mod/calendar/class/Admin.php index f7102c713..7a9fb0777 100644 --- a/mod/calendar/class/Admin.php +++ b/mod/calendar/class/Admin.php @@ -213,6 +213,9 @@ public static function event_form(Calendar_Event $event, $suggest = false) $form->setMatch('show_busy', $event->show_busy); $form->setLabel('show_busy', 'Show busy'); } + if (ALLOW_CAPTCHA) { + $form->addTplTag('CAPTCHA_IMAGE', Captcha::get()); + } if ($suggest) { $form->addSubmit('save', 'Suggest event');