From ef7a0627e8b9192cf743234f47eb2684b9ed3d42 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Mar 2008 07:52:11 +0000 Subject: [PATCH] Updated message strings, replace with msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9285 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/squid/class_proxyAccount.inc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc b/gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc index 1df345863..4672365d5 100644 --- a/gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc +++ b/gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc @@ -188,14 +188,12 @@ class proxyAccount extends plugin $message= plugin::check(); /* We've got only one value to check for positive integer or emtpy field */ - if ($this->is_account){ - if($this->acl_is_writeable("gosaProxyQuota")){ - if (isset($_POST["quota_size"])){ - if ($_POST["quota_size"] == "gosaProxyQuota"){ - $message[]= _("Numerical value for Quota Setting is empty."); - }elseif ($_POST["quota_size"] <= 0){ - $message[]= _("Numerical value for Quota Setting is not valid."); - } + if ($this->is_account && $this->acl_is_writeable("gosaProxyQuota")){ + if (isset($_POST["quota_size"])){ + if ($_POST["quota_size"] == "gosaProxyQuota"){ + $message[]= msgPool::invalid(_("Quota Setting")); + }elseif ($_POST["quota_size"] <= 0){ + $message[]= msgPool::invalid(_("Quota Setting"),$_POST["quota_size"],"/^[0-9]/"); } } } -- 2.30.2