summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17f9e6e)
raw | patch | inline | side by side (parent: 17f9e6e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Mar 2008 09:11:17 +0000 (09:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Mar 2008 09:11:17 +0000 (09:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9480 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/openxchange/personal/connectivity/openxchange/class_oxchangeAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/openxchange/personal/connectivity/openxchange/class_oxchangeAccount.inc b/gosa-plugins/openxchange/personal/connectivity/openxchange/class_oxchangeAccount.inc
index 5ff347c9bc89d794412525daeb7c16584a2a1f3f..1167e52f16c95bbce834ba710d328840747e9027 100644 (file)
isset($this->oxconf["PGPASSWD"])){
$pgcon = @pg_connect("host=".$this->oxconf["PGHOST"]." user=".$this->oxconf["PGUSER"]." password=".$this->oxconf["PGPASSWD"]." dbname=".$this->oxconf["PGDBNAME"]);
if (! $pgcon){
- msg_dialog::display(_("Error"), sprintf(_("Cannot connect to %s database!"), "Open-Xchange"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::dbconnect("Open-Xchange",@pg_last_error($pgcon)), ERROR_DIALOG);
return;
}
}else{
- msg_dialog::display(_("Configuration error"), sprintf(_("%s database configuration is missing!"), "Open-Xchange"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::noserver("Open-Xchange database"), ERROR_DIALOG);
return;
}
}else{
- msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "postgresql"), ERROR_DIALOG);
+ msg_dialog::display(_("Configuration error"),msgPool::missingext("postgresql"), ERROR_DIALOG);
return;
}
if(isset($this->oxconf["PGUSER"]) and isset($this->oxconf["PGHOST"]) and isset($this->oxconf["PGDBNAME"]) and isset($this->oxconf["PGPASSWD"])){
$pgcon = @pg_connect("host=".$this->oxconf["PGHOST"]." user=".$this->oxconf["PGUSER"]." password=".$this->oxconf["PGPASSWD"]." dbname=".$this->oxconf["PGDBNAME"]);
if (! $pgcon){
- msg::display(_("Error"), sprintf(_("Cannot connect to %s database!"), "Open-Xchange"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::dbconnect("Open-Xchange",@pg_last_error($pgcon)), ERROR_DIALOG);
return;
}
}else{
- msg_dialog::display(_("Configuration error"), sprintf(_("%s database configuration is missing!"), "Open-Xchange"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::noserver("Open-Xchange database"), ERROR_DIALOG);
return;
}
}else{
- msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "postgresql"), ERROR_DIALOG);
+ msg_dialog::display(_("Configuration error"),msgPool::missingext("postgresql"), ERROR_DIALOG);
return;
}
}