From: Matthias Schmidt Date: Thu, 1 Sep 2016 16:13:00 +0000 (+0200) Subject: Fix WCF.System.Captcha.getData() X-Git-Tag: 3.0.0_Beta_1~354 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18a8c2b704b83ac33e4b475eee7871f1c5f7814b;p=GitHub%2FWoltLab%2FWCF.git Fix WCF.System.Captcha.getData() --- 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; },