From b4043a202d1605658765e97f070ce91625e77a7f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 27 Sep 2007 12:45:57 +0000 Subject: [PATCH] Updated show_ldap_errors to use new msg_dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7426 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index 9157cf1df..600e91034 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1237,9 +1237,11 @@ function show_ldap_error($message, $addon= "") { if (!preg_match("/Success/i", $message)){ if ($addon == ""){ - print_red (_("LDAP error: $message")); + msg_dialog::display(_("LDAP error:"),$message,ERROR_DIALOG); + #print_red (_("LDAP error:")." $message"); } else { - print_red ("$addon

"._("LDAP error:")." $message"); + msg_dialog::display(sprintf(_("LDAP error in plugin '%s':"),"".$addon.""),$message,ERROR_DIALOG); + #print_red ("$addon

"._("LDAP error:")." $message"); } return TRUE; } else { -- 2.30.2