From: hickert Date: Thu, 27 Sep 2007 12:45:57 +0000 (+0000) Subject: Updated show_ldap_errors to use new msg_dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b4043a202d1605658765e97f070ce91625e77a7f;p=gosa.git 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 --- 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 {