From 9700bc48007fe0472c0edfbb225fb3dc0b6b27fe Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 6 Aug 2013 17:41:53 +0200 Subject: [PATCH] Fixes language item --- .../install/files/acp/templates/userActivityPointOption.tpl | 2 +- .../files/lib/acp/form/UserActivityPointOptionForm.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); } } -- 2.20.1