summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa7ca57)
raw | patch | inline | side by side (parent: aa7ca57)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 Jan 2007 05:22:23 +0000 (05:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 Jan 2007 05:22:23 +0000 (05:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5487 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index acbb64090c008778323390436efa8af6787e34cf..c4feeee8c28b71013480cb671829c924f38f1207 100644 (file)
$str = $this->SQL_remove_me(true);
if($str){
print_red($str);
+ return false;
}
}else{
- print_red(_("Could not remove the conference entry from database on home server (%s). Please check your asterisk database configurations and remove this entry from database manually, if necessary."));
+ print_red(_("Could not remove the conference entry from database on home server (%s). Please check your asterisk database configuration."));
+ return false;
}
/* Remove ldap entry */
index 85c011751353beda37cf34879cfcb6257f1b8e40..2d59b8189c1d73a5b53341770b8fb000c53a185f 100755 (executable)
$str = $this->remove_from_database(true);
if($str){
print_red($str);
+ return false;
}
}else{
- print_red(_("Could not remove the macro entry from asterisk databases. Please check your asterisk database configurations and remove this entry from database manually, if necessary."));
+ print_red(_("Could not remove the macro entry from asterisk databases. Please check your asterisk database configurations."));
+ return false;
}
/* Remove phone macro */
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 8f1f2869ab9bd54b7df0533593456fedeeb6815a..a3d5bc17b0361cdf6af879a65f014010e9ef7f0e 100644 (file)
}
}
- /* Check if previously selected server is still available */
- if($this->is_account && !isset($this->goFonHomeServers[$this->goFonHomeServer])){
- print_red(sprintf(_("The previously selected asterisk home server (%s) is no longer available."),preg_replace("/,/",", ",$this->goFonHomeServer)));
- }
-
/* Get available phone hardware
* Search for all available phone hardware
*/
$this->goFonPIN = $_POST['goFonPIN'];
}
}
+
+
+ function allow_remove()
+ {
+ /* Check if previously selected server is still available */
+ if($this->initially_was_account && !isset($this->goFonHomeServers[$this->goFonHomeServer])){
+ return sprintf(_("The previously selected asterisk home server (%s) is no longer available. Remove aborted."),preg_replace("/,/",", ",$this->goFonHomeServer));
+ }
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: