summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a373cb9)
raw | patch | inline | side by side (parent: a373cb9)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Mar 2008 10:08:44 +0000 (10:08 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Mar 2008 10:08:44 +0000 (10:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9423 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc
index 7a4fb12918fef7cc7d02a78289ce75ec67142ff2..feb1f6e61620d6817753e6c48d2c5d8366f737d9 100644 (file)
foreach($SQL_query_array as $query){
@DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!@mysql_query($query,$new_connection)){
- msg_dialog::display(_("Error"), sprintf(_("Cannot query %s database!"), "GOfon"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::dbquery("GOfon", mysql_error()), ERROR_DIALOG);
return false;
}
}
// Check if we are connected correctly
if(!$r_con){
- msg_dialog::display(_("Error"), sprintf(_("Cannot connect to %s database!"), "GOfon"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::dbconnect("GOfon", mysql_error()), ERROR_DIALOG);
new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
return false;
}
// Test if we have the database selected correctly
if(!$db){
- msg_dialog::display(_("Error"), sprintf(_("Cannot select %s database!"), "GOfon"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::dbselect("GOfon", mysql_error()), ERROR_DIALOG);
new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
return false;
}
foreach($SQL as $query){
@DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!@mysql_query($query,$r_con)){
- msg_dialog::display(_("Error"), sprintf(_("Cannot query %s database!"), "GOfon"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::dbquery("GOfon", mysql_error())), ERROR_DIALOG);
return false;
}
}