From 18a8c2b704b83ac33e4b475eee7871f1c5f7814b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 1 Sep 2016 18:13:00 +0200 Subject: [PATCH] Fix WCF.System.Captcha.getData() --- wcfsetup/install/files/js/WCF.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index c55cfd294e..299e3d81bc 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5032,14 +5032,14 @@ WCF.System.Captcha = { */ getData: function(captchaID) { var returnValue; - require(['WoltLabSuite/Core/Controller/Captcha'], function(ControllerCaptcha) { - try { - returnValue = ControllerCaptcha.getData(captchaID); - } - catch (e) { - console.debug('[WCF.System.Captcha] Unknow captcha id "' + captchaID + '"'); - } - }); + + var ControllerCaptcha = require('WoltLabSuite/Core/Controller/Captcha'); + try { + returnValue = ControllerCaptcha.getData(captchaID); + } + catch (e) { + console.debug('[WCF.System.Captcha] Unknow captcha id "' + captchaID + '"'); + } return returnValue; }, -- 2.20.1