Fix WCF.System.Captcha.getData()
authorMatthias Schmidt <gravatronics@live.com>
Thu, 1 Sep 2016 16:13:00 +0000 (18:13 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 1 Sep 2016 16:16:48 +0000 (18:16 +0200)
wcfsetup/install/files/js/WCF.js

index c55cfd294eb0da89d2c04abcb9a5d7c32b37c450..299e3d81bc36317f3b8bc98e49bb4332b602cd8f 100755 (executable)
@@ -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;
        },