From: hickert Date: Thu, 8 Jun 2006 05:16:53 +0000 (+0000) Subject: Fixed logserver X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c7fb1981d68db1c8487d0b109175a6db40e4391;p=gosa.git Fixed logserver git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3695 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc index 47d132b19..a61d0b354 100644 --- a/plugins/admin/systems/class_goLogDBServer.inc +++ b/plugins/admin/systems/class_goLogDBServer.inc @@ -115,11 +115,11 @@ class goLogDBServer extends plugin{ function check() { $message = plugin::check(); - if ($this->goLogAdmin == "" || preg_match("/ /", $this->goLogAdmin)){ - $message[]= sprintf(_("The attribute '%s' is empty or contains invalid characters."), "goLogAdmin"); + if (empty($this->goLogAdmin)){ + $message[]= sprintf_("The attribute user is empty or contains invalid characters."); } - if ($this->goLogPassword == "" || preg_match("/ /", $this->goLogPassword)){ - $message[]= sprintf(_("The attribute '%s' is empty or contains invalid characters."), "goLogPassword"); + if (empty($this->goLogPassword)){ + $message[]= sprintf_("The attribute password is empty or contains invalid characters."); } return($message); } diff --git a/plugins/admin/systems/goLogDBServer.tpl b/plugins/admin/systems/goLogDBServer.tpl index 9bf18aa9b..ea6405053 100644 --- a/plugins/admin/systems/goLogDBServer.tpl +++ b/plugins/admin/systems/goLogDBServer.tpl @@ -1,11 +1,11 @@

{t}Logging database information{/t}

- + - +
{t}Logging DB user{/t}{t}Logging DB user{/t}{$must}
{t}Password{/t}{t}Password{/t}{$must}