Fix informal language variant in condition error messages
authorFabii547 <fabiangossner@gmail.com>
Sat, 5 Nov 2016 15:38:20 +0000 (16:38 +0100)
committerFabii547 <fabiangossner@gmail.com>
Sat, 5 Nov 2016 15:38:20 +0000 (16:38 +0100)
wcfsetup/install/files/lib/system/condition/AbstractSingleFieldCondition.class.php

index 39d290db064990e3247e392c64f3005845160af2..0e1f12094f695b15f3d41e8dcc49ae01dcfa57cb 100644 (file)
@@ -62,7 +62,7 @@ abstract class AbstractSingleFieldCondition extends AbstractCondition {
         */
        protected function getErrorMessageElement() {
                if ($this->errorMessage) {
-                       return '<small class="innerError">'.WCF::getLanguage()->get($this->errorMessage).'</small>';
+                       return '<small class="innerError">'.WCF::getLanguage()->getDynamicVariable($this->errorMessage).'</small>';
                }
                
                return '';