Fixed AJAX validation exception messages
authorAlexander Ebert <ebert@woltlab.com>
Tue, 29 Aug 2017 10:05:33 +0000 (12:05 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 29 Aug 2017 10:05:33 +0000 (12:05 +0200)
wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php

index 64bde0710f51e26ae035c1410ab47141235275ed..6fb39d2364fd7b733057e33584b6afcc85aa5367 100644 (file)
@@ -30,7 +30,7 @@ class ValidateActionException extends \Exception {
                $this->errorMessage = $errorMessage;
                if (mb_strpos($this->errorMessage, '.') === false) {
                        if (preg_match('~^[a-zA-Z0-9-_]+$~', $this->errorMessage)) {
-                               $this->errorMessage = WCF::getLanguage()->get('wcf.global.form.error.'.$this->errorMessage);
+                               $this->errorMessage = WCF::getLanguage()->getDynamicVariable('wcf.global.form.error.'.$this->errorMessage);
                        }
                }
                else {