From: Matthias Schmidt Date: Tue, 6 Aug 2013 15:41:53 +0000 (+0200) Subject: Fixes language item X-Git-Tag: 2.0.0_Beta_7~59^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9700bc48007fe0472c0edfbb225fb3dc0b6b27fe;p=GitHub%2FWoltLab%2FWCF.git Fixes language item --- diff --git a/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl b/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl index cfda2fa952..ea7460dc38 100644 --- a/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl +++ b/wcfsetup/install/files/acp/templates/userActivityPointOption.tpl @@ -43,7 +43,7 @@ {if $errorField == $objectType->objectTypeID} - {lang}wcf.acp.user.activityPoint.option.notValid{/lang} + {lang greaterThan=-1}wcf.global.form.error.greaterThan{/lang} {/if} diff --git a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php index 1337183307..048d008085 100644 --- a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php @@ -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'); } }