Code

Updated class groupware
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Nov 2010 13:38:05 +0000 (13:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Nov 2010 13:38:05 +0000 (13:38 +0000)
-Updated error messages

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20172 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_Groupware.inc

index 9e2dacb018410aa789d769eb00552ff1003be2ad..1e195296baba44ea62675a90bfd93d38f63013e3 100644 (file)
@@ -788,9 +788,7 @@ class Groupware extends plugin
             $res = $this->rpcExec('gwAcctdAdd', $this->uid, $this->mailAddress);
             if($res === NULL){
                 $message = _("Groupware account creation failed!");
-                msg_dialog::display(_("Error"), 
-                    $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                    ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
                 return;
             }
         }
@@ -800,9 +798,7 @@ class Groupware extends plugin
             $res = $this->groupwareDao->save("primaryMail", $this->uid, $this->mailAddress);
             if($res === NULL){
                 $message = _("Setting account mail address failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }
 
@@ -814,9 +810,7 @@ class Groupware extends plugin
                 $res = $this->groupwareDao->save("alternateAddresses", $this->uid, array($this->alternateAddresses));
                 if($res === NULL){
                     $message = _("Saving alternate addresses failed!");
-                    msg_dialog::display(_("Error"), 
-                            $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                            ERROR_DIALOG);
+                    msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
                 }
             }
         }
@@ -831,9 +825,7 @@ class Groupware extends plugin
             $res = $this->groupwareDao->save("forwardingAddresses", $this->uid, array($addresses));
             if($res === NULL){
                 $message = _("Saving forward addresses failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }
 
@@ -854,9 +846,7 @@ class Groupware extends plugin
             $res = $this->groupwareDao->save("quotaSize", $this->uid, $quota);
             if($res === NULL){
                 $message = _("Saving quota failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }
 
@@ -865,9 +855,7 @@ class Groupware extends plugin
             $res = $this->saveFoldersAndAcls($this->uid, $this->mailFolder);
             if($res === NULL){
                 $message = _("Saving mail folder failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }
 
@@ -875,9 +863,7 @@ class Groupware extends plugin
             $res = $this->groupwareDao->save("mailLocation", $this->uid, $this->mailLocation);
             if($res === NULL){
                 $message = _("Saving mail location failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }
 
@@ -892,9 +878,7 @@ class Groupware extends plugin
             $res = $this->groupwareDao->save("mailLimit", $this->uid, array( $this->mailLimitSendValue, $this->mailLimitReceiveValue));
             if($res === NULL){
                 $message = _("Saving mail limitations failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }
 
@@ -909,9 +893,7 @@ class Groupware extends plugin
             }
             if($res === NULL){
                 $message = _("Saving vacation message failed!");
-                msg_dialog::display(_("Error"), 
-                        $message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),
-                        ERROR_DIALOG);
+                msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);
             }
         }