Fixes language item
authorMatthias Schmidt <gravatronics@live.com>
Tue, 6 Aug 2013 15:41:53 +0000 (17:41 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 6 Aug 2013 15:41:53 +0000 (17:41 +0200)
wcfsetup/install/files/acp/templates/userActivityPointOption.tpl
wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php

index cfda2fa9523313dac71f0d309e0d5dd34dabab45..ea7460dc38cb236b738c9982fcd1ed116fd5c339 100644 (file)
@@ -43,7 +43,7 @@
                                                <input type="number" id="{@$objectType->objectType}" name="points[{@$objectType->objectTypeID}]" value="{$points[$objectType->objectTypeID]}" required="required" min="0" class="tiny" />
                                                {if $errorField == $objectType->objectTypeID}
                                                        <small class="innerError">
-                                                               {lang}wcf.acp.user.activityPoint.option.notValid{/lang}
+                                                               {lang greaterThan=-1}wcf.global.form.error.greaterThan{/lang}
                                                        </small>
                                                {/if}
                                        </dd>
index 13371833073f43ea390e8a3a5345e257abb85935..048d008085d180a3e97d388ed2b28082035025b4 100644 (file)
@@ -56,7 +56,7 @@ class UserActivityPointOptionForm extends AbstractForm {
                parent::validate();
                
                foreach ($this->points as $objectTypeID => $points) {
-                       if ($points < 0) throw new UserInputException($objectTypeID, 'notValid');
+                       if ($points < 0) throw new UserInputException($objectTypeID, 'greaterThan');
                }
        }